• 载入锁频



    function DyLayer() { function el(id) {
    return document.getElementById(id); }; //加載狀態 this.LoadStatus = ""; //css名 this.CssName = "layermask"; //創建遮蓋層 this.render = function(dw, dh) { try { var objDiv = el("sysdiv_wait"); if (objDiv == null) { objDiv = document.createElement("DIV"); objDiv.id = "sysdiv_wait"; objDiv.className = this.CssName; document.body.appendChild(objDiv); var w = 0; var h = 0; var size = qp_shared.getPageSize(); if (dw != null) w = dw; else w = size.width; if (dh != null) h = dh; else h = size.height; objDiv.style.width = w + "px"; objDiv.style.height = h + "px"; var objImg = document.createElement("IMG"); objImg.id = "sysimg_wait"; objImg.src = qp_shared.getURL("images/wait/reloading.gif"); objImg.style.zIndex = 999999; objImg.style.position = "absolute"; objImg.style.left = parseInt((w-24)/2) + "px"; objImg.style.top = parseInt((h-24)/2) + "px"; document.body.appendChild(objImg); } }catch(e){} }; //展現遮蓋層 this.dw_render = function(w, h, resizeToMax, cssName) { this.LoadStatus = "Loading"; //如果需要最大化窗口時 if (resizeToMax) { window.moveTo(0, 0); window.resizeTo(window.screen.availWidth, window.screen.availHeight); }; //如果有自定css if (cssName != null) { this.CssName = cssName; }; this.render(w, h); }; //展現遮蓋層 this.show = function(w, h, resizeToMax, cssName) { this.dw_render(w, h, resizeToMax, cssName); }; this.show2 = function(h, cssName) { this.dw_render(null, h, null, cssName); }; this.show3 = function(cssName) { this.dw_render(null, null, null, cssName); }; //刪除遮蓋層 this.dw_remove = function() { try{ this.LoadStatus = ""; var objDiv = el("sysdiv_wait"); if (objDiv != null) document.body.removeChild(objDiv); var objImg = el("sysimg_wait"); if (objImg != null) document.body.removeChild(objImg); }catch(e){} }; //刪除遮蓋層 this.remove = function() { this.dw_remove(); } }; var oLayer = new DyLayer();

    //鎖定界面
    function lockingLayer() {
    oLayer.dw_render();
    };
  • 相关阅读:
    kubesphere在应用商店安装rabbitmq注意事项
    js中两个感叹号的作用!!
    Mysql5.7 时间Datetime 索引不生效问题
    Electron NodeJS 订阅和消费RabbitMQ详细笔记
    QGraphicsItem QGraphicsObject 项目进行属性动画时候,需要注意。
    vcpkg默认x64版本
    联级查询 id 和 parentid 左外查询
    SQL server 获取表、视图字段属性
    SQL 异常捕获和事务回滚
    关联查询,两表关联逗号隔开查询
  • 原文地址:https://www.cnblogs.com/yzenet/p/3716539.html
Copyright © 2020-2023  润新知