js+加载等待效果进度条



js+加载等待效果进度条,

  1. <!DOCTYPE HTML PUBLIC ”-//W3C//DTD HTML 4.01 Transitional//EN” ”http://www.w3.org/TR/html4/loose.dtd”>
  2. <html>
  3.  <head>
  4.   <title> 加载等待效果 </title>
  5.   <meta name=”Generator” content=”EditPlus”>
  6.   <meta name=”Author” content=”">
  7.   <meta name=”Keywords” content=”">
  8.   <meta name=”Description” content=”">
  9.  </head>
  10.  <body>
  11.  <form id=”form” name=”form”>
  12.   <table border=”0″ width=”100%” height=”100%”>
  13.     <tr>
  14.     <td align=center>
  15.         <p><font id=”context”>正在登录,检查环境…….</font></p>
  16.         <p>
  17.             <input type=”text” name=”chart” size=”46″ style=”font-family:Arial; font-weight:bolder; color:gray;background-color:white; padding:0px; border-style:none;”>
  18.             <br>
  19.             <input type=”text” name=”percent” size=46 style=”font-family:Arial; color:gray; text-align:center; border-width:medium; border-style:none;”>
  20.             <script>var bar = 0;
  21.             var line = ”||” ;
  22.             var amount =”||” ;
  23.             count() ;
  24.             function count(){
  25.                 bar= bar+2 ;
  26.                 amount =amount + line;
  27.                 document.form.chart.value=amount ;
  28.                 document.form.percent.value=bar+”%”;
  29.                 if (bar<99)
  30.                     {setTimeout(“count()”,100);}
  31.                 else
  32.                     {window.location = ”http://www.baidu.com/”;}
  33.             }
  34.             </script>
  35.         </p>
  36.     </td>
  37. </tr>
  38. </table>
  39. </form>
  40.  </body>
  41. </html>