等待页面
function showBlockPage() {
var cover = document.all("coverMsg");
if (cover == null) {
document.forms[0].insertAdjacentHTML("beforeEnd", "<IFRAME id='coverMsg' style='filter:alpha(style=0,opacity=80); position:absolute; left:0px; top:0px;' frameborder='0' src='" + dir_base +"/jsp/common/blank.jsp' scrolling='no'></IFRAME>");
cover = document.all("coverMsg");
}
cover.style.top = 0;
cover.style.left = 0;
cover.style.width = document.body.scrollWidth;
cover.style.height = document.body.scrollHeight;
cover.style.visibility = "visible";
}
移除
OBJECT.removeChild(OBJECT'S CHILD);
OBJECT.removeNode(true);
document.all("coverMsg").removeNode(true);
blank.jsp
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>Block Page</title></head><body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"><table cellspacing="0" cellpadding="0" width="100%" height="100%"> <tr valign="middle"> <td> <table align=center width=300> <tr><td align="center"><img src="<%=request.getContextPath()%>/images/loading.gif"></td></tr> </table> </td> </tr></table></body></html>