<script type="text/javascript">
var i = 5;
var intervalid;
intervalid = setInterval("fun()", 1000);
function fun() {
if (i == 0) {
window.location.href = "index.aspx"; //返回页面
clearInterval(intervalid);
}
document.getElementById("mes").innerHTML = i;
i--;
}
var i = 5;
var intervalid;
intervalid = setInterval("fun()", 1000);
function fun() {
if (i == 0) {
window.location.href = "index.aspx"; //返回页面
clearInterval(intervalid);
}
document.getElementById("mes").innerHTML = i;
i--;
}
</script>
<div class="container">
<div class="cg_fhdiv m_t">
<p>恭喜,操作成功!</p>
系统<second id="mes">5</second>秒后自动返回!<br />
<button type="submit" class="submit btn">返 回</button>
</div>
</div>