一款简易的页面加载进度显示条

图片预览:


演示代码:

[html]  view plain copy
  1. <html>  
  2. <head>  
  3. <title>正在载入...</title>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">  
  5. </head>  
  6. <body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">  
  7. <table border=0 cellpadding=0 cellspacing=0 width="100%" height="100%">  
  8. <tr>   
  9. <form name=loading>  
  10. <td align=center>    
  11.   
  12.   <img src="0[1].jpg"><!--Loading Gif图片显示-->  
  13. <p><font color=gray>正在载入首页,请稍候.......</font></p>  
  14. <p>   
  15. <input type=text name=chart size=46 style="font-family:Arial;   
  16. font-weight:bolder; color:gray;  
  17. background-color:white; padding:0px; border-style:none;">  
  18. <br>  
  19. <input type=text name=percent size=46 style="font-family:Arial;   
  20. color:gray; text-align:center;   
  21. border-width:medium; border-style:none;">  
  22. <script>var bar = 0   
  23. var line = "||"   
  24. var amount ="||"   
  25. count()   
  26. function count(){   
  27. barbar+2   
  28. amount =amount + line   
  29. document.loading.chart.value=amount   
  30. document.loading.percent.value=bar+"%"   
  31. if (bar<99)   
  32. {setTimeout("count()",100);}   
  33. else   
  34. {window.location = "http://write.blog.csdn.net/postlist";}  //加载完跳转的页面!  
  35. }  
  36. </script>  
  37. </p>  
  38. </td>  
  39. </form>  
  40. </tr>  
  41. </table>  
  42. </body>  
  43. </html>  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值