1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
<script> function loadBar(fl) { var x, y; if (self.innerHeight) { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) { x = document.body.clientWidth; y = document.body.clientHeight; } var el = document.getElementById('loader'); if (null != el) { var top = (y / 2) - 50; var left = (x / 2) - 150; if (left <= 0) left = 10; el.style.visibility = (fl == 1) ? 'visible' : 'hidden'; el.style.display = (fl == 1) ? 'block' : 'none'; el.style.left = left + "px" el.style.top = top + "px"; el.style.zIndex = 2; } } </script> <body onload="loadBar(0)"> <div id="loader"> <table style="FILTER: Alpha(opacity=75);" class="loader" summary="Loader Layout" border="0" cellpadding="5" cellspacing="1" bgcolor="#bbbbb"> <tr> <td bgcolor="#FFFFFF" align="left"> <p> <img src="clocks.gif" height="32" width="32" align="left" style="margin:3px" alt="请等待"/><strong>数据载入中...</strong><br/> <span style="font-size:8pt;">Please wait until this screen is completely loaded.</span> </p> </td> </tr> </table> </div> <script type="text/javascript" language="javascript">loadBar(1)</script> </body> |