1 /** 2 * Page load wait page3 * 4 * @author Gxjiang5 * @date 2010/7/246 * 7 */ 8 varHeight = window.screen.height-250; 9 varwidth =Window.screen.width; Ten varLEFTW = 300; One if(width>1200){ ALEFTW = 500; -}Else if(width>1000){ -LEFTW = 350; the}Else { -LEFTW = 100; - } - + var_html = "<div id= ' loading ' style= ' position:absolute;left:0;width:100%;height:" +height+ "px;top:0;background: #E0ECFF; Opacity:0.8;filter:alpha (opacity=80); ' >\ -<div style= ' Position:absolute; Cursor1:wait;left: "+leftw+"px;top:200px;width:auto;height:16px;padding:12px 5px 10px 30px;\ + background: #fff URL (/wlzl/js/themes/default/images/pagination_loading.gif) no-repeat scroll 5px 10px;border:2px Solid #ccc; color: #000; ' >\ A loading, please wait ... \ at</div></div> "; - -Window.onload =function(){ - var_mask = document.getElementById (' Loading ')); - _mask.parentnode.removechild (_mask); - } in - todocument.write (_html);
View Code
JS solve Easyui page Rendering slow problem (mask mask)