YAHOO锁屏进度条

D:\GTRS_workspace\TRS_1_TimeReportingFEWeb\WebContent\js\yui

the process bar depend on it

(function() {
	var loader = new YAHOO.util.YUILoader();
	loader.base = "./js/yui/";
	loader.require('reset', 'grids', 'base', 'container', 'calendar');
	loader.insert({
				loadOptional: true
				})
})();	

 

YAHOO.util.Event.onDOMReady(function () {
	YAHOO.namespace("container"); 
	YAHOO.container.wait =new YAHOO.widget.Panel("wait",   
            { width:"400px",  
              fixedcenter:true,  
              close:false,  
              draggable:false,  
              zindex:10, 
              modal:true,
	          visible:false 
	            }
	        ); 
//	YAHOO.container.wait.backgroundColor="#00FF00";
	YAHOO.container.wait.setHeader("Processing, please wait...");
	YAHOO.container.wait.setBody('<img src="/progressbar-animated.gif"/>'); 
	YAHOO.container.wait.render(document.body);
});

 

YAHOO.container.wait.show();
YAHOO.container.wait.hide();

 

你可能感兴趣的:(Yahoo,yui)