方法1:
");
document.getElementById("link").innerHTML="
" url "";
$(t,url);
}
function $(t,url){
ta = t-1;
tb = t "000";
d = document.getElementById("tt");
d.innerHTML=t;
window.setInterval(function()
{
go_to(url);
},1000);
}
function go_to(url){
d.innerHTML=ta--;
if(tadocument.write("正在跳轉至:
" url "" );
location.href=url;
}
else{
return;
}
}
//-->
}
//-->
程式碼如下:
window.setTimeout("window.location='index.shtml' ",2000); //兩秒後跳轉新頁