标签:
<title>网页loading</title> <script language="javascript"> function setSB(v, el) { var ie5 = (document.all && document.getElementsByTagName); if (ie5 || document.readyState == "complete") { filterEl = el.children[0]; valueEl = el.children[1]; filterEl.style.width = v + "%"; valueEl.innerText = v + "%"; } } function fakeProgress(v, el) { if (v > 100) location.href = "http://blog.sina.com.cn/u/5729482504"; else { setSB(v, el); window.setTimeout("fakeProgress(" + (++v) + ", document.all[‘" + el.id + "‘])", 20); } } </script> </head> <body onload="fakeProgress(0, sb)" topmargin=180 bgcolor=#000000> <center> <p align=center style="font-szie:9pt; line-height: 100%">正在加载请稍侯……</p> <span id=sb style="width: 500px"> <div style="filter: Alpha(Opacity=0, FinishOpacity=60, style=1, StartX=0, StartY=0, FinishX=100, FinishY=0); width: 0%; height: 12px; position: absolute; background: #00cccc"></div> <div style="font-size: 12px; width: 100%; color: #FFFFFF; font-family: arial; text-align: center"></DIV> </span> </center> </body> </html>
JavaScript之Loading进度条
原文地址:http://www.cnblogs.com/caidupingblogs/p/5565747.html