根据线路、镜像速度分流自动跳转代码
<style>.t {display:none;}</style>
<p align="center">正在打开最快的站点……</p>
<img class="t" src="站A的地址/站标.gif" border="0" onload="window.location.href='站A的地址'">
<img class="t" src="站B的地址/站标.gif" border="0" onload="window.location.href='站B的地址'">
<img class="t" src="站C的地址/站标.gif" border="0" onload="window.location.href='站C的地址'">
Js代码
i=1
var autourl=new Array()
autourl[1]="http://dx.xxx.com"
autourl[2]="http://cnc.xxx.com"
var autourltest=new Array()
autourltest[1]="http://dx.xxx.com/logo.gif"
autourltest[2]="http://cnc.xxx.com/logo.gif"
function auto(url)
{
if(i)
{
i=0;
top.location=url
}}
function run()
{
for(var i=1;
i<autourl.length;i++)
document.write("<img src="+autourltest[i]+"?"+Math.random()+" width=1 height=1 onload=auto('"+autourl[i]+"/index.php')>")
}
run()
run()
run()