None.gif<center>
None.gif
<div style="height:60;width:280;display:none;background-color:#ffffdd;border-style:outset;border-width:2;position:relative;top:-20;z-index:999;cursor:wait" id="showmes" valign="middle">
None.gif    
<table border=0 height=100% width=100%>
None.gif        
<tr>
None.gif            
<td align='middle' width=35%>
None.gif                
<img src='../Images/cursor_1.gif' border='0' WIDTH='32' HEIGHT='32'>
None.gif            
</td>
None.gif            
<td valign='middle'>
None.gif                正在查詢中dot.gifdot.gif
None.gif            
</td>
None.gif        
</tr>
None.gif    
</table>
None.gif
</div>
None.gif
</center> 

上敘代碼的作用是在打開其他頁面前用來顯示進程正在執行,請用戶等待的畫面.具體的使用如下

None.gifshowmes.style.display="";
None.gif
var today=new Date();
None.gifwindow.showModalDialog(
"aststoreInOutrpt.asp?now="+today,null,"status=0;dialogHeight="+window.screen.availHeight+"px;dialogwidth=1500 px;dialogtop=0;dialogleft=0;help=0");
None.gifshowmes.style.display
="none";
這樣在打開aststoreinoutrpt.asp頁面時,將會先出現請等待的畫面,然後當下一個頁面在服務端生成後傳到客戶端,客戶端才顯示下一個頁面.這樣增加可介面的友好性.
等待的畫面如下
333.jpg

转载于:https://www.cnblogs.com/oisiv/archive/2005/03/04/112994.html

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐