你是不是有好几个镜像站点,要让人进入最快的站点吗

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

有什么问题请到<a href='/bbs/forums.php?fid=21'>论坛</a>中发表<br>

<!--# 特效来源:http://www.webjx.com/js -->

<!-- 把如下代码加入<body>区域中 -->

你是不是有好几个镜像站点,是不是经常有的站点打不开,那么用下面的代码就可以解决这个问题,它会自动选择最快的站点进入

<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://www.sohu.com"

autourl[2]="http://www.sina.com.cn"

autourl[3]="http://www.webjx.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>

[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航