我这有段代码,请高手帮我把其中倒计时代码提取出来~不胜感激~!!!

来源:百度知道 编辑:UC知道 时间:2024/05/14 08:58:10
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>回复成功</title>
<link rel="icon" href="http://img.alipay.com/img/icon/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://img.alipay.com/img/icon/favicon.ico" type=&qu

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>回复成功</title>
<script type="text/javascript" language="javascript" >
window.onload = initCountDownRedirector;
function initCountDownRedirector(){
var x = document.getElementById("TimeCountNum");
if(!x) return;
var t = x.innerHTML;
window.setTimeout("countDownRedirector()",1000);
}
function countDownRedirector(){
var x = document.getElementById("TimeCountNum");
if(!x) return;
var t = x.innerHTML;
if(t > 0 ){
t--;
x.innerHTML = t;
window.setTimeout("countDownRedirector()",1000);
}else{
window.location = x.title;
}
}
</script>
</head>
<body>
您的回复已发表,<span id="TimeCountNum" class="B"