频道直达 - 学院 - 下载 - 交易 - 特效 - 字库 - 手册 -排名-工具- 繁體
网页教学网站开发 设为首页
加入收藏
联系我们
建站搜索: 常用广告代码   用户注册 | 用户登陆
您当前的位置:中国建站之家 -> 网站开发设计技术教程 -> 网站设计相关 -> 测试网站进入速度很实用的代码

测试网站进入速度很实用的代码

作者:jz123  来源:www.jz123.cn  发布时间:2005-10-28 6:23:13  发布人:jz123

减小字体 增大字体

<SCRIPT>
if (document.all&&window.spotlight){
var x=new Array()
var direction=new Array()
var y=new Array()
if (spotlight.length==null){
spotlight[0]=document.all.spotlight
x[0]=0
direction[0]="right"
y[0]=spotlight[0].height
spotlight[0].filters.light.addPoint(100,50,100,255,255,255,90)
}
else
for (i=0;i<spotlight.length;i++){
x[i]=0
direction[i]="right"
y[i]=spotlight[i].height
spotlight[i].filters.light.addPoint(100,50,100,255,255,255,90)
}
}

function slidelight(cur){
spotlight[cur].filters.light.MoveLight(0,x[cur],y[cur],200,-1)

if (x[cur]<spotlight[cur].width+200&&direction[cur]=="right")
x[cur]+=10
else if (x[cur]>spotlight[cur].width+200){
direction[cur]="left"
x[cur]-=10
}
else if (x[cur]>-200&&x[cur]<-185){
direction[cur]="right"
x[cur]+=10
}
else{
x[cur]-=10
direction[cur]="left"
}
}

if (document.all&&window.spotlight){
if (spotlight.length==null)
setInterval("slidelight(0)",spotlight[0].speed)
else
for (t=0;t<spotlight.length;t++){
var temp='setInterval("slidelight('+t+')",'+spotlight[t].speed+')'
eval(temp)
}
}
</SCRIPT>
<P>这个脚本可以使你方便得获得各网站的连接速度,用来做镜像站导航效果不错
<SCRIPT>
tim=1
setInterval("tim++",100)
b=1
var autourl=new Array()
autourl[1]="www.sucai114.com"
autourl[2]="www.sina.com.cn"
autourl[3]="www.163.com"
autourl[4]="www.sohu.com.cn"
autourl[5]="cn.yahoo.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=测试中……> <font color=33ff33>》</font><input type=text name=url"+i+" size=45> <font color=33ff33>》</font><input type=button value=进入 onclick=window.open(this.form.url"+i+".value)><br>")
document.write("</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>


将本文收藏到QQ书签与更多好友分享
[打 印]
[] [返回上一页] [收 藏]
上一篇文章:坛海科技ASP空间
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
精彩推荐
热门文章
· 注册码大全二
· 注册码大全四
· 注册码大全一
· 要10G免费网络硬盘的请进..
· 通过google 赶快来赚美金..
· 注册码大全十
· 头像-qq头像(qq新头像)4..
· 让你轻松架设FTP服务器1..
· 注册码大全三
· 梦幻背景图片7
· 卡通动物图片6
· 网页制作素材-按钮素材2..
· 让你轻松架设FTP服务器5..
· 风景图片8
· 注册码大全九
· 让你轻松架设FTP服务器2..
关注此文读者还看过
· 解决无法加载php_oci8.d..
· 安装mysql 教程
· ASP技术在论坛中的运用。..
· ASP.NET如何存取SQL Ser..
· 5173游戏交易网的商业欺..
· php 进阶:实现无限分类(..
· 利用javascript完全屏蔽..
· 沪港藏三地“电脑神童”..
· DreamwaverMX与ASP.NET(..
· 跟我学SQL:(五)创建和修..
· RFC821-简单邮件传输协议..
· 人大复印资料处理程序_查..
· Dreamweaver MX 2004从零..
· 轻松打造Flash帧速率测试..
· Asp.net中的Popup控件的..
· 微软重返原创娱乐 MSN部..
相关文章
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 人才招聘
网站合作、内容监督、商务咨询:QQ: 9576619
Copyright ? 2005--2008 中国建站之家版权所有
粤ICP备05092265号