几秒后可点击确认按钮。。代码如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="25" align="center" id="rulesubmit"> <script type="text/javascript"> var secs = 9; var wait = secs * 1000; document.getElementById('rulesubmit').innerHTML = '<INPUT type="submit" id="submit" name="submit" value="请仔细阅读以上的注册许可协议 (' + secs + ')" class="bottom" disabled="disabled">'; for(i = 1; i <= secs; i++) { window.setTimeout("update(" + i + ")", i * 1000); } window.setTimeout("timer()", wait); function update(num, value) { if(num == (wait/1000)) { document.getElementById('rulesubmit').innerHTML = '<INPUT type="submit" id="submit" name="submit" disabled="disabled" value="请仔细阅读以上的注册许可协议" class=bottom>'; } else { printnr = (wait / 1000) - num; document.getElementById('rulesubmit').innerHTML = '<INPUT type="submit" id="ubmit" name="submit" disabled="disabled" value="请仔细阅读以上的注册许可协议 (' + printnr + ')" class=bottom>'; } } function timer() { document.getElementById('rulesubmit').innerHTML = '<INPUT type="submit" id="submit" name="submit" value="同 意 条 款" class=bottom1>'; } </script></td> </tr> </table> |
技术文档2010/01/25
/img/logo.jpg)
Stay informtiave, San Diego, yeah boy!