转到内容
|
转到侧边栏
EFanZh的博客-计算机
主页
订阅评论(RSS)
订阅帖子(RSS)
我的简介
EFanZh
查看我的完整个人资料
链接
我的网站
我的博客-生活
我的博客-资源
我的笔记本
电子邮件
QQ
标签
Blogger
(2)
eMule
(1)
FireFox
(1)
Google
(4)
Google Music
(1)
Google Page Creator
(1)
Google Sites
(1)
Google 协作平台
(1)
IE
(1)
IIS
(1)
Picasa
(1)
Tor
(2)
Windows Live
(6)
Windows Live Mesh
(1)
Windows Live SkyDrive
(4)
Windows Live Spaces
(1)
Windows XP
(1)
Word
(1)
个人
(9)
发现
(5)
奥运
(1)
娱乐
(1)
屏蔽
(4)
彩蛋
(1)
知识
(7)
编程
(2)
网络技巧
(7)
试用
(2)
谷歌
(6)
软件技巧
(9)
检测网站链接速度的JavaScript代码
2008年7月18日
在网页的相应位置加入以下HTML代码:
<script type="text/javascript"> time = 1; setInterval("time++",100); b = 1; var autourl = new Array(); autourl[1] = "http://www.google.com/"; autourl[2] = "http://www.cctv.com/"; autourl[3] = "http://www.google.cn/"; autourl[4] = "http://www.microsoft.com/"; autourl[5] = "http://www.adobe.com/"; autourl[6] = "http://www.dell.com.cn/"; autourl[7] = "http://localhost/"; autourl[8] = "http://www.intel.com.cn/"; autourl[9] = "http://www.sohu.com/"; autourl[10] = "http://www.sina.com/"; autourl[11] = "http://www.yahoo.com/"; autourl[12] = "http://www.baidu.com/"; autourl[13] = "http://www.shudoo.com/"; autourl[14] = "http://bbs.shudoo.com/"; autourl[15] = "http://www.cnbeta.com/"; autourl[16] = "http://www.news.cn/"; autourl[17] = "http://www.net.cn/"; autourl[18] = "http://www.newhua.com/"; autourl[19] = "http://www.cfan.com.cn/"; autourl[20] = "http://www.cpcfan.com/"; function butt(){ document.write("<form id=autof>"); for(var i = 1;i<autourl.length;i++){ document.write("<input type=text id=txt" + i + " size=10 value=测试中... class=buttonface>--><input type=text id=url" + i + " size=60 class=buttonface><br>"); } document.write("</form>"); } butt(); function auto(url){ document.forms[0]["url" + b].value = url; if(time>200){ document.forms[0]["txt" + b].value = "链接超时"; } else{ document.forms[0]["txt" + b].value = "时间" + time / 10 + "秒"; } b++; } function run(){ for(var i = 1;i<autourl.length;i++){ document.write("<img src=" + autourl[ i ] + "/" + Math.random() + " width=1 height=1 onerror=auto('" + autourl[i] + "')>"); } } run(); </script>
然后运行这个网页就可以看到结果。
0评论
发表评论
<较新的帖子
较早的帖子>
主页
搜索
博客归档
►
2009
(
10
)
►
四月
(
4
)
提示找不到本地网页文件的解决办法
gVim For Windows乱码问题解决办法
Apache不支持中文路径的解决办法
微软将SharePoint Designer免费发行
►
三月
(
3
)
Google 音乐更新
Vista下关闭系统休眠的方法
Google 帐户管理界面更新
►
二月
(
3
)
推荐几款FireFox插件
腾讯越来越小气了
谷歌地球官方简体中文版发布
▼
2008
(
36
)
►
十二月
(
2
)
Google Page Creator解封
Windows Live SkyDrive 更新至25G
►
十月
(
2
)
Windows Live SkyDrive又可以使用了
Google Sites 发布简体中文版
►
八月
(
8
)
令人目瞪口呆的四位电脑大师(笑话)
防止Blogger自动修改HTML代码
试用Windows Live Mesh
Windows Live SkyDrive无法访问
Blogger测试版更新
Picasa网络相册照片无法引用
使用iGoogle小工具帮你关注奥运
使用Google.com进行搜索
▼
七月
(
22
)
使用Tor轻松突破屏蔽
链接Office 2007数据库的方法
一些常见的图像格式的介绍
一些常见的音频格式的介绍
终于可以使用Live SkyDrive账户啦!
Bit与Byte的区别
5个有趣的浏览器地址栏JavaScript代码
清除Adobe捆绑的Bonjour
慎用“快速关机”的功能
密码差点被盗
假冒的eMule的官方网站?
一些常见的视频格式的介绍
检测网站链接速度的JavaScript代码
屏蔽广告的一种经典方法
在IE7中定义新窗口打开的方式
使用“千千静听”提取视频中的音频
使用“画图”的两个技巧
Windows XP自带的游戏中的几个彩蛋
新发现的一个技巧
IIS“发生意外错误 0x8ffe2740”
让Word文档自动减少一页
软件不同版本之间的区别
►
六月
(
2
)
Sandbox:强悍的Windows Live模块
让你的计算机自动登录
►
2007
(
5
)
►
五月
(
1
)
慎用“模糊音”功能
►
三月
(
2
)
我发现(计算机)之一
高手境界
►
二月
(
1
)
我受骗了!
►
一月
(
1
)
Copyright ©2008
EFanZh的博客-计算机
0评论
发表评论