<body>
<input type=button onclick=lock() value=go>
<input type=button onclick=lock() value=go>
<script>
function lock(){
window.event.srcElement.blur();
document.body.runtimeStyle.cursor="wait"
document.body.disabled=true;
setTimeout(unlock,1000);
}
function unlock(){
document.body.runtimeStyle.cursor=""
document.body.disabled=false;
}
</script>

解决方案 »

  1.   

    <style>
    a,input,textarea{cursor:wait}
    </style>
    <body onclick="event.returnValue=false">
    <a href="#">TestTestTestTestTestTestTestTestTestTestTestTestTestTest</a>
    <input type="button" value="TestTestTestTestTestTestTestTestTest" onclick="alert('?')">
    还没有特别好的办法。只有对每个元素单独处理了
      

  2.   

    秋水前辈的方法:document.body.disabled=true,只能使IE窗口显示为无效状态(阴影),但实际上鼠标的点击还是能使IE产生反应,向服务器发出请求。
    孟子前辈的方法:event.returnValue=false不能动态地改变鼠标的状态。各位前辈还有更好的方法吗?
      

  3.   

    把秋水老大的加上这个应该没问题了:
    <body>
    <input type=button onmouseover=lock() value=go>
    <input type=button onclick=lock() value=go>
    <script>
    function lock(){
    window.event.srcElement.blur();
    document.body.runtimeStyle.cursor="wait"
    document.body.disabled=true;
    for(i=1;i<document.all.tags("INPUT").length;i++)
    document.all.tags("INPUT")[i].disabled=true//setTimeout(unlock,1000);
    }
    function unlock(){
    document.body.runtimeStyle.cursor=""
    document.body.disabled=false;
    for(i=1;i<document.all.tags("INPUT").length;i++)
    document.all.tags("INPUT")[i].disabled=false;
    }
    </script>
    ================================================================
    俺是"老"菜鸟一只, 请各位高手多指教!
    ------ 好好学习, 天天上网! --------
    →→→→→→→→→→→→→→→→→→→→
    http://www.boy.net.cn/home0/goldenlove 
    ←←←←←←←←←←←←←←←←←←←←
    多谢 CSDN 助手帮我自动加入签名. 
    www.chinaok.net
    ================================================================
      

  4.   

    噢..那句 setTimeout 还是要的,只是我测试的时候把它变成注释了...
    ================================================================
    俺是"老"菜鸟一只, 请各位高手多指教!
    ------ 好好学习, 天天上网! --------
    →→→→→→→→→→→→→→→→→→→→
    http://www.boy.net.cn/home0/goldenlove 
    ←←←←←←←←←←←←←←←←←←←←
    多谢 CSDN 助手帮我自动加入签名. 
    www.chinaok.net
    ================================================================