N秒后自动跳转

<span id="yu"></span><a href="/javascript:countDown"></a>秒钟后系统将自动返回...
<script language="javascript">
<!--
function countDown(secs)
{yu.innerText=secs;
 if(--secs>0)
 {setTimeout("countDown("+secs+")",1000);}
 else
 {window.location.href="/";}
}
countDown(3);
-->
</script>
posted @ 2007-04-10 16:45  子午  阅读(323)  评论(0编辑  收藏  举报