Web/obj/Debug/Package/PackageTmp/Js/ShowDivJS.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

// JScript 文件

        function resize(target)
        {
            ShowDiv(target);
            pclear(target);
        }
        function ShowDiv(target)
        {
            if(document.getElementById("CoverDiv") == null)
            {
                 var div = document.createElement("div");
                 document.body.appendChild(div);                
                 div.id ="CoverDiv";
                 var x =window.screen.availWidth;
                 var y = window.screen.availHeight;
                 var css ="height:"+y+"px;width:"+x+"px;z-index:97;padding:0 0; background-color:AppWorkspace;position:absolute;top:0px;left:auto;filter: Alpha(Opacity=30);opacity:0.5;";
                 div.style.cssText =css; 
            }else
            {
                var div = document.getElementById("CoverDiv");
                div.style.display = "block";
            }
             
             var p = document.getElementById(target);        
             p.style.display ="block"; 
             var array = getPageSize();                 
             var w = array[0] * 0.5;
             var h = array[1] * 0.5; 
             var h1 = parseInt(p.scrollHeight) * 0.5;
             var w1 = parseInt(p.clientWidth) * 0.5;                               
             var left = w - w1;
             var top = h - h1;
             if(left <0)
             {
                left =0;
             }
             if(top <0)
             {
                top =0;
             }
             var pcss = "top:"+top+"px;left:"+left+"px;border:solid 1px #1C5896; position:absolute;z-index:999;width:"+p.scrollWidth+"px;height:"+p.scrollHeight+"px;";
             p.style.cssText = pcss;                                       
        }
        function pclear(target)
        {
              var div = document.getElementById(target);
              div.style.display = "none";
              var Coverdiv = document.getElementById("CoverDiv");
              Coverdiv.style.display = "none";
        }
        function getPageSize(){
            var xScroll,yScroll;
            if (window.innerHeight && window.scrollMaxY){
            xScroll = document.body.scrollWidth;
            yScroll = window.innerHeight + window.scrollMaxY;
            } else if (document.body.scrollHeight > document.body.offsetHeight){
            xScroll = document.body.scrollWidth;
            yScroll = document.body.scrollHeight;
            } else {
后面还有 29 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。