日期:2014-05-17 浏览次数:21289 次
<div id="msg"></msg>
<script type="text/javascript">
var times=10;
function test(){
document.getElementById("msg").innerHTML="页面将在"+times+"后跳转";
times-=1;
if(times<=0){
window.clearInterval(doTEST);
window.location.href="http://www.370b.com";
}
}
var doTEST;
window.clearInterval(doTEST);
doTEST=window.setInterval("test()",1000);
</script>
http://rayyu.5d6d.com/viewthread.php?tid=9046&highlight=%B5%B9%BC%C6%CA%B1