让按钮倒计时10秒以后才能提交

来源:互联网 发布:mac新建文件快捷键 编辑:程序博客网 时间:2024/05/16 07:19

 http://www.corange.cn/archives/2008/10/1898.html

让按钮倒计时10秒以后才能提交

<script type="text/javascript"><!--google_ad_client = "pub-4490194096475053";/* 内容页,300x250,第一屏 */google_ad_slot = "3685991503";google_ad_width = 300;google_ad_height = 250;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
  1. <script> 
  2. i=9 
  3. function change() 
  4. i--; 
  5. p.value="同意"+i 
  6. if(i==0) 
  7. p.disabled=false
  8. else 
  9. setTimeout("change()",1000) 
  10. window.onload=change
  11. </script> 
  12. <input type=button name=p disabled> 
<script type="text/javascript"><!--google_ad_client = "pub-4490194096475053";/* 728x90, 创建于 08-12-8 */google_ad_slot = "0403648181";google_ad_width = 728;google_ad_height = 90;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>