使用easyui时 进入一个新页面 前要经过一个页面混乱的时候 才到正常的页面去


var width = $(window).width();  
        var height = $(window).height();  
        var html = "<div id='loading' style='position:absolute;left:0;width:100%;height:" + height + "px;top:0;background:#EFEFEF;opacity:1;filter:alpha(opacity=100);'>";  
        html += "<div style='position:absolute;cursor1:wait;left:" + ((width / 2) - 75) + "px;top:200px;width:150px;height:16px;padding:12px 5px 10px 30px;";  
        html += "background:#EFEFEF url(/yxt-admin/js/easyui/themes/gray/images/loading.gif) no-repeat scroll 5px 10px;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);        

加上这段代码就好了!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM