有代码有真相.- <script type="text/javascript" language="javascript">
- var btnreg = document.getElementById("Button2");
- btnreg.disabled = "disabled";
- var time;
- var i = 5;
- time = setInterval(function () {
- if (i >= 1) {
- btnreg.value = "仔细阅读(" + i + ")";
-
-
- }
- else {
- btnreg.disabled = "";
- btnreg.value = "开始";
- clearInterval(time);
- }
- i--;
- }, 1000);
- </script>
复制代码 望宋兄加技术分,赶二期
|