日期:2014-05-20 浏览次数:21023 次
/*遮罩层*/
.div_middle { 
    position: fixed;
    z-index:100;
    top: 0px;
    left: 0px;
    height:100%;
    width:100%;
    background-color:#000;
    filter:alpha(opacity=75);
    opacity: 0.75;
    
}
------解决方案--------------------
至于你要实现的那种等待效果应该是配合Ajax实现的,客户端在发送XmlHttpRequest之后,就用遮罩层将相应的区域蒙上,然后显示等待状态,在Ajax的回调函数加载完成之后再将遮罩层隐藏掉即可。
------解决方案--------------------
 <script language="javascript" type="text/javascript">
      //建对象
      var XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
     
     //请求
      function request()
      {
        if (XmlHttp!=null)
        {
          XmlHttp.Open("POST","TagHandler.ashx",true);
          XmlHttp.send();
          XmlHttp.onreadystatechange=ServerProcess;
        }
      }
     
      //回调
      function ServerProcess()
      {
          if(XmlHttp.readystate==4 || XmlHttp.readystate=="complete")
          {
              eval(XmlHttp.responsetext);
          }
      }
   </script>