function show()
{
  document.body.disabled=false
}
document.body.disabled=true
setTimeout("show()",30000)

解决方案 »

  1.   

    <SCRIPT>
    function show(disabled)
    {
      document.body.disabled=disabled;
      if(disabled) setTimeout("show(false);",30000);
    }
    setTimeout("show(true);",30000);
    </SCRIPT><INPUT type="button" value="OK">
      

  2.   

    用了这个之后对象的onclick事件依然能响应
    比如
    <INPUT TYPE="text" NAME="">
    <INPUT TYPE="button" onclick="alert();document.body.disabled=true;">
    <TABLE>
    <TR>
    <TD style="border:red solid 10px; color:blue" onclick="alert('dsadsa')">dsfdsfds</TD>
    </TR>
    </TABLE>
      

  3.   

    那你可以把页面上所有的对象都disabled一遍,按钮disabled后,事件不再响应了
      

  4.   

    提交后记录cookies<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title> New Document </title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author" content="">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    </head>
    <body>
    <form name="demo">
    <textarea cols="10" rows="10">
    rrrr
    </textarea>
    <input type="button" value="?">
    </form>
    <script>
    if (GetCookie("yourcookiename")!=null){
    var eles= document.forms[0].elements;
    for (var i=0;i<eles.length;i++){
    eles[i].disabled = true;
    }
    }
    function GetCookie (name) { 
    var arg = name + "="; 
    var alen = arg.length; 
    var clen = document.cookie.length; 
    var i = 0; 
    while (i < clen) { 
    var j = i + alen; 
    if (document.cookie.substring(i, j) == arg) 
    return getCookieVal (j); 
    i = document.cookie.indexOf(" ", i) + 1; 
    if (i == 0) break; 

    return null;
    }
    </script>
    </body>
    </html>
      

  5.   

    有个办法。
    用个层罩住,提交好,30秒内层的display = 'block';
    30 秒后为none;