<body>
<div id=mxh style="visibility:hidden">pls waiting</div>
<script>
function t(){
document.all.mxh.style.visibility='visible'
}
</script>
<form onsubmit="t()" action="http://xxx/xx.asp">
<input type=submit>
</form>

解决方案 »

  1.   

    http://www.csdn.net/expert/topic/596/596034.xml?temp=.2283594
      

  2.   

    试试这个,你使用层来显示进度条,开始隐藏这个层,当提交的时候显示
    <script>
    function check(theform)
    {
    wslhID.style.visibility="visible";
    return true;
    function wslh()
    {var obj=document.all.strID;
     if (obj.value.length>70)
       {obj.value="请稍候";}
     obj.value=obj.value+" ";
     obj.select();
     setTimeout("wslh()",100);
    }
    setTimeout("wslh()",1000);
    </script><div id="wslhID" style="position:absolute; width:100%; height:95px; z-index:1; overflow: auto; border: 1px none #000000; left: 10px; top: 10px; visibility: hidden;background-color:EEEEFF;color=000000">
    <br><font style="font-family:宋体;font-size:10.5pt">
    <font color=red>  【建立连接】</font>正在上传文件......如果长时间没有变换页面,请您放弃<br><br>
      <input type=text name=str ID=strID size=70 readonly value='请稍候' style='font-size:10.5pt;background-color:EEEEFF;color:000000;border: 1 double'>
    </font>
    </div>
    <FORM NAME="PostForm" METHOD="POST"   onsubmit="return(check(this));">
    ....
    ....
    <input type="submit" name="submit1" value="上传">
    </form>