日期:2014-05-17 浏览次数:20438 次
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript"> function ScreenWaiting() { var o; var x, y; x = screen.availWidth; y = screen.availHeight; o = document.getElementById("pWaiting"); o.style.width = x; o.style.height = y; o.style.visibility = "visible"; o.style.top = 0; o.style.left = 0; o.getFoucs; } </script> <style type="text/css"> .snake { background: Silver; filter: alpha(opacity=50); /*IE*/ -moz-opacity: 0.5; /*MOZ , FF*/ opacity: 0.5; /*CSS3, FF1.5*/ position: absolute; visibility: hidden; text-align: center; } </style> </head> <body> <form id="form1" runat="server"> <div style="height: 300px; width: 300px; border: solid 1px blue"> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form> <div id="pWaiting" class="snake"> <center> <p> Processing... ... </p> </center> </div> </body> </html>
------解决方案--------------------
那是用ajax处理的,
异步交互成功后把层去掉
------解决方案--------------------
还是使用AJAX吧,点击一下后,使按钮不可用,当数据提交成功后恢复