防止重复提交,提交后出现等待画面

防止重复提交,提交后出现等待画面
++++++++++++++++++++++++++++++++++++++++++++++++
在提交前执行的方法。

function witing(){
divModal.style.width = document.body.scrollWidth;
divModal.style.height = document.body.scrollHeight;
divProgressDialog.style.display = "";
divProgressDialog.style.left = ((document.body.offsetWidth - divProgressDialog.offsetWidth) / 2);
divProgressDialog.style.top = ((document.body.offsetHeight - divProgressDialog.offsetHeight) / 2);
}

页面代码添加。

<DIV STYLE="FONT-SIZE: 8pt; Z-INDEX: ? FONT-FAMILY: Tahoma;
POSITION: absolute; DISPLAY: none;
CURSOR: default" ID="divProgressDialog" dir="ltr">
<IMG src="../images/indicator_big.gif">
<DIV STYLE="PADDING: 3px;FONT-WEIGHT: bolder;COLOR:rgb(255, 0, 0)">
请稍等!正在加载数据。。。
</DIV>
</DIV>
<DIV ID="divModal"
STYLE="BORDER-TOP: white 1px groove;
PADDING-BOTTOM: 5px; PADDING-TOP: 3px;
BACKGROUND-COLOR: buttonface;
TEXT-ALIGN: center; BACKGROUND-COLOR: white;
FILTER: alpha(opacity=75); LEFT: 0px; POSITION:
absolute; TOP: 1px; Z-INDEX: 3">
</DIV>

你可能感兴趣的:(重复提交)