几秒后可点击确认按钮。。代码如下:

?View Code JAVASCRIPT
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
  • 文章评论
  • Stay informtiave, San Diego, yeah boy!

  • This could not pobssliy have been more helpful!

发表评论

You must be logged in to post a comment.