[JS代碼]自動跳到最快的服務器

<script>
i=1
var autourl=new Array()
autourl[1]="http://www.XXXX.NET" //這個是電信服務器站點
autourl[2]="http://XXXXX.COM" //這個是網通服務器站點
function auto(url)
{
if(i)
{
i=0;
top.location=url
}}
function run()
{
for(var i=1;
i<autourl.length;i++)
document.write("<img src="+autourl[i]+" width=1 height=1 onerror=auto('"+autourl[i]+"')>")    
}
run()    
</script>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章