页面提交时加层
<html>
<head>
<script language='javascript'>
function test()
{
document.getElementById("doing").style.visibility="visible";
}
</script>
</head>
<div id="doing" runat="server" style="Z-INDEX: 12000; LEFT: 0px; VISIBILITY: hidden; WIDTH: 100%; POSITION: absolute; TOP:
30px; HEIGHT: 100%">
<table width="100%" height="100%">
<tr align="center" valign="middle">
<td>
<table width="169" class="font3" height="62" bgcolor="#6699ff" style="FILTER: Alpha(Opacity=75);
WIDTH: 169px; HEIGHT: 62px">
<tr align="center" valign="middle">
<td>页面提交中,请等待<br/>
Please wait
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<input type="button" onclick="test()">
</html>
如果是asp.net,在后台 pageload里面这么写:this.Button1.Attributes.Add("onclick","document.getElementById('doing').style.visibility='visible';");
等操作结束重定向了后页面重新加载一次,这个层也就消失了。
各位如果有什么好的请指教,呵呵
浙公网安备 33010602011771号