|
你是不是有好几个镜像站点,是不是经常有的站点打不开,那么用下面的代码就可以解决这个问题,它会自动选择最快的站点进入 <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://123.dbit.cn autourl[2]= autourl[3]=http://www.bbs.dbit.cn 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+" width=1 height=1 onerror=auto(“"+autourl+"“)>")} run() </script> </body></html> |
【收藏】【打印】【进入论坛】 |
|
|
|
|
|
|
|