日期:2014-05-20 浏览次数:20962 次
<html> <script> var time1; //调用时间更新 UpdateTimer(); function UpdateTimer() { time1 = window.setTimeout("UpdateTimer()", 1000); var leftTime = document.getElementById("time_span").innerHTML - 1; document.getElementById("time_span").innerHTML = leftTime; if(leftTime <= 0) { clearTimeout(time1); //调用main frame 提交form事件 parent.main.submitForm(); } } </script> <span id="time_span">2</span> </html>