有問題可聯系我QQ:429810818

          posts - 4, comments - 6, trackbacks - 0, articles - 8

          導航

          公告

          @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css); @import url(http://www.aygfsteel.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          網頁半透明遮罩DIV層

          Posted on 2013-06-19 21:35 張力 閱讀(322) 評論(0)  編輯  收藏

          效果圖:
          代碼

          /**
           * 通用等待處理
           * @author 張力
           * 用法 loading.start();則顯示 loading.close();則關閉
           */
          var loading={
          'id':'loading',
          'name':'loading',
          'init':function(){
              return  parent.parent.parent.parent.parent.parent.document;
          },
          'start':function(){
           var pdocument = this.init();
           
           var bgObj=pdocument.createElement("div");  

           bgObj.setAttribute('id','bgDiv');  

           bgObj.style.position="absolute";  

           bgObj.style.background="#FFFFFF";  

           bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=1,opacity=20,finishOpacity=75";  

           bgObj.style.opacity="0.5";  

           bgObj.style.top="0";  

           bgObj.style.left="0"; 

           bgObj.style.width="100%";  

           bgObj.style.height="100%";  

           bgObj.style.zIndex = "1000";  
             
           pdocument.body.appendChild(bgObj); 
           
           var loaddiv=document.createElement("div");
           
           loaddiv.setAttribute('id','loaddiv');
           
           loaddiv.setAttribute('align','center');
           
           loaddiv.style.top="50%";  

           loaddiv.style.left="50%";
           
           loaddiv.style.position="absolute";  
           
           loaddiv.style.zIndex = "1001"; 
           
           loaddiv.innerHTML="<img src='images/loading_img.gif' ></br>正在處理,請稍候....";

           pdocument.body.appendChild(loaddiv); 
          },
          'close':function (){
           var pdocument = this.init();
           pdocument.body.removeChild(pdocument.getElementById("bgDiv"));
           pdocument.body.removeChild(pdocument.getElementById("loaddiv"));  
          }
          };


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 石阡县| 金坛市| 嘉鱼县| 仙游县| 隆回县| 金堂县| 珠海市| 安岳县| 三原县| 汤原县| 上林县| 卢湾区| 驻马店市| 峨眉山市| 舒兰市| 孟津县| 濮阳县| 上饶市| 柘荣县| 颍上县| 金华市| 江山市| 花莲县| 镇巴县| 宁阳县| 鸡东县| 隆林| 宕昌县| 新郑市| 牙克石市| 安塞县| 南陵县| 新源县| 昌乐县| 威远县| 山阴县| 辉县市| 屯昌县| 仁布县| 晋州市| 滨海县|