首页 | 电视剧 | 电影 | 常用软件 | 杀毒技术 | 装机必备 | 设计之家 | 小说阅读 | 网页素材 | 实用查询 | 学院 | 论坛
您现在的位置:
首页 > 网页特效 > 正文
 
检测你链接某地址所需要的时间
  要完成此效果把如下代码加入到<body>区域中

<script>

tim=1

setInterval("tim++",100)

b=1

var autourl=new Array()

autourl[1]="www.zlce.net"

autourl[2]="bbs.zlce.net"

autourl[3]="blog.zlce.net"

autourl[4]="my.zlce.net"

autourl[5]="down.zlce.net"

function butt(){

document.write("<form name=autof>")

for(var i=1;i<autourl.length;i++)document.write("<input type=text name=txt"+i+" size=10 value=测

试中……> =》<input type=text name=url"+i+" size=40> =》<input type=button value=GO

onclick=window.open(this.form.url"+i+".value)><br>")

document.write("<input type=submit value=刷新></form>")

}

butt()

function auto(url){

document.forms[0]["url"+b].value=url

if(tim>200)

{document.forms[0]["txt"+b].value="链接超时"}

else

{document.forms[0]["txt"+b].value="时间"+tim/10+"秒"}

b++

}

function run(){for(var i=1;i<autourl.length;i++)document.write("<img

src=http://"+autourl[i]+"/"+Math.random()+" width=1 height=1

onerror=auto('http://"+autourl[i]+"')>")}

run()</script>

 
 
 
精品特别推荐


 
  
关于我们 | 广告指南 | 联系我们
天诺时空 版权所有!未经授权禁止转载、摘编、复制或建立镜像,如有违反,追究法律责任。
Copyright © www.zolSky.Com All Rights Reserved