html 页面 判断第一个反应的网站并进行跳转

<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>正在进入</title>
<meta name="description" content="正在进入">
<meta name="keywords" content="正在进入">
<link href="" rel="stylesheet">

<script language="javascript">
times=1
setInterval("times++",100)
b=1
var autourl=new Array() // 检测的站点
autourl[1]="http://q0592.com/?aff=9947473"
autourl[2]="http://xiusexxx.com/?aff=996613"
autourl[3]="http://www.zuozhetuan.org/?aff=988413"

// 判断第一个反应的网站并进行跳转
function auto(url){
window.location.replace(url);
b++
}

// 进行故意错误请求并得到反应速度
function run(){
for(var i=1;i<autourl.length;i++)
document.write("<img src=http://"+autourl[i].split("//")[1].split("/")[0]+"/"+Math.random()+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")
}
run()
</script>

</head>
<body>
<!-- <a href="" target="_blank" onclick="run()"></a> -->
</body>
</html>

猜你喜欢

转载自www.cnblogs.com/xiaojizhualaoying/p/10397977.html