<script language="javascript"> var maxtime = 15; function CountDown(){ if(maxtime>=1) { var msg = maxtime; document.getElementById("daoSec").innerHTML=msg; --maxtime; } else { clearInterval(timer); window.location.href="http://www.xrccc.com/"; } } window.onload = CountDown; timer = setInterval("CountDown()",1000); </script>
倒计时<em id="daoSec">15</em>秒