全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1130|回复: 2

[Windows VPS] 求改js代码 ~~~~

[复制链接]
发表于 2015-5-17 13:15:30 | 显示全部楼层 |阅读模式
<script language="javascript">
tim=1
setInterval("tim++",100)
b=1
var autourl=new Array()
autourl[1]='http://baidu.com/';
autourl[2]='http://163.com/';
autourl[3]='http://qq.com/';
autourl[4]='http://sina.com.cn/';

function butt(){
document.write("<form name=autof style='padding:0px; margin:0px;'>")
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=会员访问 onclick=window.open(this.form.url"+i+".value)><br>")
document.write("<input type=submit value=再次检测刷新 style='margin-top:10px'></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+"ms"}
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]+"') style='display:none'>")}
run()
</sCRIPT>

现在后面每个链接都是“会员访问 ” 想改成腾讯, 百度,新浪等
发表于 2015-5-18 08:42:36 | 显示全部楼层
你一提钱,马上就有人出来了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-6-24 23:59 , Processed in 0.068702 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表