<style>.t {display:none;}</style>
<p align="center">正在打开最快的站点……</p>
<img class="t" src="站A的地址/站标.gif" border="0" onload="window.location.href='站A的地址'">
<img class="t" src="站B的地址/站标.gif" border="0" onload="window.location.href='站B的地址'">
...
<style>.t {display:none;}</style>
<p align="center">正在打开最快的站点……</p>
<img class="t" src="站A的地址/站标.gif" border="0" onload="window.location.href='站A的地址'">
<img class="t" src="站B的地址/站标.gif" border="0" onload="window.location.href='站B的地址'">
...
<%
if Request.ServerVariables("SERVER_NAME")="mcncc.com" then
response.redirect "1.asp"
else if Request.ServerVariables("SERVER_NAME")="www.mcncc.com" then
response.redirect "2.asp"
else
response.redirect "404.html"
end if
end if
...
php一句就可以搞定.<?readfile(rand(1,5).\'.png\');?>
40个字节搞定随机显示图片(PHP)
<?=readfile("./img/".rand(1,4).".jpg")?>
随着网站访问量的加大,每次从数据库读取都是以效率作为代价的,很多用ACCESS作数据库的更会深有体会,静态网页加在搜索时,也会被优先考虑。互联网上流行的做法是将数据源代码写入数据库再从数据库读取生成静态网面,这样无形间就加大了数据库。将现有的ASP页直接生成静态网页,将会节省很多。
下面的例子是将、index.asp?id=1/index.asp?id=2/index.asp?id=3/这三个动态页面,分别生成ndex1.htm,index2.htm,index3.htm存在根目录下面:
...
| 第一步:修改风格文件里面的每一个页面,添加function='str_replace("index.html","",@me)'/,就可以达到列表是目录形式。添加位子见下面的引用框内的红色字 ... |