myway 发表于 2007-4-27 11:39:24

***测试搜索***测试网站进入速度很实用

把下列代码加到网页的<body></body>标签之间 从google下载我的照片管理软件
要完成此效果把如下代码加入到<body>区域中

<script>         
if (document.all&&window.spotlight){         
var x=new array()         
var direction=new array()         
var y=new array()         
if (spotlight.length==null){         
spotlight=document.all.spotlight         
x=0         
direction="right"         
y=spotlight.height         
spotlight.filters.light.addpoint(100,50,100,255,255,255,90)         
}         
else         
for (i=0;i<spotlight.length;i++){         
x=0         
direction="right"         
y=spotlight.height         
spotlight.filters.light.addpoint(100,50,100,255,255,255,90)         
}         
}         
         
function slidelight(cur){         
spotlight.filters.light.movelight(0,x,y,200,-1)         
         
if (x<spotlight.width+200&&direction=="right")         
x+=10         
else if (x>spotlight.width+200){         
direction="left"         
x-=10         
}         
else if (x>-200&&x<-185){         
direction="right"         
x+=10         
}         
else{         
x-=10         
direction="left"         
}         
}         
         
if (document.all&&window.spotlight){         
if (spotlight.length==null)         
setinterval("slidelight(0)",spotlight.speed)         
else         
for (t=0;t<spotlight.length;t++){         
var temp='setinterval("slidelight('+t+')",'+spotlight.speed+')'         
eval(temp)         
}         
}         
</script>
<p>这个脚本可以使你方便得获得各网站的连接速度,用来做镜像站导航效果不错
<script>
tim=1
setinterval("tim++",100)
b=1
var autourl=new array()
autourl="www.jojoo.net"
autourl="www.sina.com.cn"
autourl="www.163.com"
autourl="www.sohu.com.cn"
autourl="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["url"+b].value=url
if(tim>200)
{document.forms["txt"+b].value="链接超时"}
else
{document.forms["txt"+b].value="时间"+tim/10+"秒"}
b++
}
function run(){for(var i=1;i<autourl.length;i++)document.write("<img src=http://"+autourl+"/"+math.random()+" width=1 height=1 onerror=auto('http://"+autourl+"')>")}
run()
http://</script>
      










------------------------------- ----- --

拥有三人 行论坛管理系列软件,一个人就可以管理一个论坛的更新维护。还能使您的论坛有千人在线的真实火暴效果,让您不在为论坛因没有人气而留 不住会 员而烦恼,使您的论坛早日成为一流的论坛。详情请登陆网站: htt p://www.cnsrx.cn 三人行论坛管理软 件,站长必 备的 专 业好工具。(您使用的是免费版本,购买收费版 本后,将 不带广告。业务QQ:24 7216 44985227)
页: [1]
查看完整版本: ***测试搜索***测试网站进入速度很实用