实现选择最快的镜像站点

<html><head> 
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> 
<meta http-equiv="refresh" content="10;url=./"><title>速度测试中……</title></head> 
<center><p><font color=blue size=7>请稍候,速度测试中……</p>
<script>
i=1 
var autourl=new Array() 
autourl[1]="http://fj126.net" 
autourl[2]="http://www.cnbrd.com" 
function auto(url){if(i){i=0;top.location=url}} 
function run(){for(var i=1;i<autourl.length;i++)document.write("<img src="+autourl[i]+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")} 
run()
</script></body></html> 
posted @ 2006-07-17 12:59  torome  阅读(228)  评论(0)    收藏  举报