<html>
<head>
<script type="text/javascript">
function countDown(secs) {document.getElementById("jump").innerHTML = secs;
if (--secs > 0){
setTimeout("countDown(" + secs + " )", 1000);
}else{
location.href="www.baidu.com";//写另一个网页的文件名也行,像 1 。html
}
</script>
</head>
<body style="overflow: auto;" onload="javascript:countDown(10);">页面将在<span id="jump"></span>秒后自动跳转......
</body>
</html>