jquery 訊息視窗 blockUI 的開啟與關閉

開啟

 <SCRIPT language=JavaScript>

$.blockUI({ 
       message: "Please wait...",  
       css: {          
           border: 'none', 
           padding: '15px', 
           backgroundColor: '#000', 
           '-webkit-border-radius': '10px', 
           '-moz-border-radius': '10px', 
           opacity: .5, 
           fadeIn: 0 ,
           color: '#FFFFFF' 
        } 
      });  

</SCRIPT>

關閉

<SCRIPT language=JavaScript>
jQuery(document).ready(function() {  
  $.unblockUI();
   $(".blockUI").fadeOut("slow");
});
</SCRIPT>

Other