使用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