自动选择最快服务器代码!

<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:/"
autourl[2]=http://w
autourl[3]=http://w
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>