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);

  • 相关阅读:
    AJAX
    Django(cookie和session)
    Django(分页)
    跨站请求伪造和csrf_token使用
    Django(ORM查询联系题)
    Django(ORM查询2)
    Django(ORM查询1)
    Django(ORM常用字段)
    复习
    第二次作业:卷积神经网络 part2
  • 原文地址:https://www.cnblogs.com/huangf714/p/5922583.html
Copyright © 2011-2022 走看看