Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->网络应用 ->服务器 ->正文

网管员如何自动选择最快服务器的代码

来源:bbs.network.ccidnet.com  作者:Webmaster 时间:2007-04-25 点击: [收藏] [投稿]

















<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="5;url=./">
<title>自动选择最快站点</title>
</head>
<center>
<br>
<p>
<br>
<font color=blue size=7><br><br>
请稍候,正在选择速度最快站点......</p>

<script>
i=1
var autourl=new Array()//要测试的站点
autourl[1]="http://waha.3322.net"
autourl[2]="http://www.sina.com.cn"
autourl[3]="http://www.baron.com.cn"

function auto(url)
{
if(i){i=0;top.location=url}
}

function run()
{
for(var i=1;i<autourl.length;i++)
document.write("<ccid_file values="+autourl[i]+" width="1" height="1" onerror=auto("+autourl[i]+") />")
}

run()
</script>

</body>
</html>

(t113)

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:实战安全设置WEB专用服务器技巧与应用   下一篇:网络管理员防止黑客入侵服务器小三步曲

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号