- 3/5
- 1
- 2
- 3
- 4
- 5
织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!
页面转向的进度条,您可以先修改部分代码再运行.
<!--要完成此效果把如下代码加入到<body>区域中--> <form name="loading"> <div align="center"> <p><font color="#0000ff"><input name="chart" size="37" style="background-color: black; color: #FF0000; font-family: Arial; font-weight: bolder; border-style: none; padding: 0px"><br><input name="percent" size="53" style="background-color: black; color: #FFFFFF; text-align: center; border-style: none; border-width: medium"> </font> <SCRIPT> var bar = 0 var line = "||" var amount ="||" count() function count(){ bar= bar+3 amount =amount + line document.loading.chart.value=amount document.loading.percent.value=bar+"%" if (bar<99) {setTimeout("count()",100);} else {window.location = "#";} //要链接的页面 } </SCRIPT>