(function(){ var oldonbeforeunload = window.onbeforeunload; window.onbeforeunload = function(){ // 加载鼠标动画。 By SPACE 2019-04-02 wd.display.showLoad(); if(oldonbeforeunload) oldonbeforeunload(); var objScreen = document.createElement("div"); var oS = objScreen.style; objScreen.id = "ScreenOver"; oS.display = "block"; oS.top = oS.left = oS.margin = oS.padding = "0px"; if (document.body.clientHeight){ var wh = document.body.clientHeight + "px"; }else if (window.innerHeight){ var wh = window.innerHeight + "px"; }else{ var wh = "100%"; } // oS.width = "110%"; // oS.height = wh; oS.width = "100%"; oS.height = "100%"; oS.position = "absolute"; oS.zIndex = "3"; //将值由3改为-1 暂时解决遮罩层问题 by Rd 2015-08-04 //oS.background = "#cccccc url(/wd/image/masklayer.gif)"; //bug测试 注释掉gifurl寻址 // oS.background = "#cccccc"; oS.filter = "alpha(opacity=40)"; oS.opacity = 40/100; oS.MozOpacity = 40/100; oS.cssText+=";text-align:center;display: table-cell;vertical-align: middle; overflow:hidden;"; oS.cssText+=";line-height:"+wh+";"; //objScreen.innerHTML=; // document.body.appendChild("
"); document.body.appendChild(objScreen); // alert("addPic"); // addPic(); } })(); //function addPic(){ // alert("BEGIN"); // var objScreen = document.createElement("div"); // var oS = objScreen.style; // objScreen.id = "ScreenOver"; // oS.display = "block"; // oS.background = "#cccccc url(/wd/image/masklayer.gif)"; // oS.background-position = "center"; // oS.width = "100px"; // oS.height = "100px"; // var obj = document.getElementById("ScreenOver"); // obj.appendChild(objScreen); // alert("END"); //}