给页面添加遮罩层

来源:互联网 发布:老淘宝店铺没流量 编辑:程序博客网 时间:2024/05/22 02:12
<script>function closes(){    $("#Loading").fadeOut("normal",function(){        $(this).remove();    });}var pc;$.parser.onComplete = function(){    if(pc) clearTimeout(pc);    pc = setTimeout(closes, 500);}</script>   <div id='Loading' style="position:absolute;z-index:1000;top:0px;left:0px;width:100%;height:100%;background:#DDDDDB;text-align:center;padding-top: 20%;"><h1><img style="width: 10%" src='/saasoc/image/loading1.gif' /><font color="#15428B">加载中···</font></h1></div>  
原创粉丝点击