日期:2014-05-16  浏览次数:20336 次

jsp页面倒计时自动跳转

<script type="text/javascript">
?function countDown(secs) {
? document.getElementById("jump").innerHTML = secs;
? if (--secs > 0){
?? setTimeout("countDown(" + secs + " )", 1000);
?? }else{
?? location.href="pwmfactiveProcess";
?? }
?}
?</script>

<body style="overflow: auto;" onload="javascript:countDown(10);">
...
<tr>
<td align="center">
页面将在<span id="jump"></span>秒后自动跳转......
</td>
</tr>
...
</body>