zoukankan      html  css  js  c++  java
  • 加载页面(Loading)

    /*
    文件说明:页面加载时Loading JS
    文件描述:解决IE或FF下,初始化加载时,页面布局乱掉的问题,参考:
    */
    var width = $(window).width();
    var height = $(window).height();

    var html = "<div id='loading' style='position:absolute;left:0;z-index:999999;100%;height:" + height + "px;top:0;background:#E0ECFF;opacity:1;filter:alpha(opacity=100);'>";
    html += "<div style='position:absolute;cursor1:wait;z-index:999999;left:" + ((width / 2) - 75) + "px;top:200px;150px;height:16px;padding:12px 5px 10px 40px;";
    html += "background:#fff url(../../Content/images/loading.gif) no-repeat scroll 5px 5px;border:2px solid #ccc;color:#000;'>";
    html += "正在加载请稍后....";
    html += "</div>";
    html += "</div>";

    window.onload = function () {
    var mask = document.getElementById('loading');
    mask.parentNode.removeChild(mask);
    };
    document.write(html);

  • 相关阅读:
    zabbix:乱码问题
    zabbix--微信报警(未完成)
    ansible-playbook项目(4)
    ansible-playbook(3)
    备份和校验脚本-邮件通知
    rsync
    keepalived
    双机热备
    nginx负载均衡
    LNMP(5)
  • 原文地址:https://www.cnblogs.com/huangf714/p/5922583.html
Copyright © 2011-2022 走看看