JavaScriptS写的定时返回角本
You will be redirected to our homepage in <span id="timeLeft" class="alert"></span> seconds, or you can go to <a href="/"><u>Website</u></a> directly. <script type="text/javascript"> function runDirect(){ if(times<0){return false;} --times; var s = document.getElementById("timeLeft"); s.innerHTML = times; if(times == 0){ times=-1; location.href='/'; return false; } } var times = 1400; document.getElementById("timeLeft").innerHTML = times; setInterval("runDirect();", 1000); </script>