首页 > 代码库 > 简单倒计时跳转代码(from:sysoft.cc)

简单倒计时跳转代码(from:sysoft.cc)

<script type="text/javascript">        window.onload = function () {            timetrade();        }        function timetrade() {            var timestr = document.getElementById("timeout").innerHTML;            var time = parseInt(timestr);//            alert(time);            if (time > 0) {                time--;                document.getElementById("timeout").innerHTML = time;                                setTimeout(timetrade, 1000);                            }            else {                var url = document.getElementById(<%=Link.ClientID%>).href;                window.location = url;            }                     }    </script>

 

简单倒计时跳转代码(from:sysoft.cc)