首页
网页特效库
网页特效库
导航菜单
按钮表单
背景特效
时间日期
图片特效
鼠标特效
文本操作
窗口页面
状态栏类
警告对话
综合应用
游戏娱乐
首页
>
特效
>
综合应用
> 正文
网站连接速度测试JavaScript代码版
2010-08-12 综合应用 431℃
<html> <head> <title>网站连接速度测试</title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> </head> <body> 测试网站连接速度: <script language="javascript"> tim=1 setInterval("tim++",100) b=1 var autourl=new Array() autourl[1]="www.google.com" autourl[2]="www.baidu.com" autourl[3]="www.sina.com" autourl[4]="www.qq.com" autourl[5]="www.zlcool.com" 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> </body> </html>
相关特效代码
无相关信息
热门特效代码
腾讯天气预报的JS代码
点击“添加收藏”代码
多款表格边框单元格特殊效果代码
CSS 横向图片列表
网站连接速度测试JavaScript代码
用CSS为表格添加阴影效果
综合搜索引擎代码
超级计数器网页特效代码
强迫访问广告链接代码
nVida 网站图片滑动切换代码
推荐特效代码
强迫访问广告链接代码
点击“添加收藏”代码
CSS 横向图片列表
常用的对联广告带关闭功能
极品仿windows进度条效果
漂亮的触发行变色代码