不懂不懂不懂了。。。
<!DOCTYPE html>
<html>
?<head>
? <title>瀏覽器對(duì)象</title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gkb"/> ??
?</head>
?<body>
? <!--先編寫好網(wǎng)頁布局-->
? <h1>操作成功</h1>
? <p><span id="timer">5</span>秒后回到主頁 <a href="idcbgp.cn">返回</a></p>
? <script type="text/javascript">
? var num=5;
? function fun(){
? ? num--;
? ? if(document.getElementById("timer").innerHTML==0){
? ? ? ? location.href("idcbgp.cn");
? ? ?}
? ? ?else{
? ? ? ? document.getElementById("timer").innerHTML=num;?
? ? setTimeout(fun,1000);
? ? ?}
? ?setTimeout(fun,1000);
?
}
?</script>
</body>
</html>
2015-01-22
哪不懂?