方法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;
}
}
//-->
方法2:
window.setTimeout("window.location='index.shtml'",2000);
//两秒后跳转新页面