脚本说明: 把如下代码加入<body>区域中 <script language=javascript> function do_totals() { documentallpleasewaitScreenstylepixelTop = (documentbodyscrollTop + ); documentallpleasewaitScreenstylevisibility=visible; windowsetTimeout(do_totals()); } function do_totals() { lengthy_calculation(); documentallpleasewaitScreenstylevisibility=hidden; } function lengthy_calculation() { var xy for(x=;x<;x++) { y += (x * y) / (y x); } } </script> <DIV ID=pleasewaitScreen STYLE=position:absolute;zindex:;top:%;left:%;visibility:hidden> <TABLE BGCOLOR=# BORDER= BORDERCOLOR=# CELLPADDING= CELLSPACING= HEIGHT= WIDTH= ID=Table> <TR> <TD WIDTH=% HEIGHT=% BGCOLOR=silver ALIGN=CENTER VALIGN=MIDDLE> <FONT FACE=Arial SIZE= COLOR=blue><B>正在处理中<br> 请稍等</B></FONT> </TD> </TR> </TABLE> </DIV> <p align=center> <input type=button name=btn_calc value=处理等待 onclick=do_totals()> </p> |