在状态栏字符发散、集合的效果 dn001 2009-06-21 08:24:05 <!-- http://www.knowsky.com/js --> <!-- bbs http://www.knowsky.com/bbs--> <!-- 要完成此效果把如下代码加入到<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 = "http://www.knowsky.com";} //要链接的页面 } </SCRIPT> <!-- 第二步:把“onload="Splash()"”加在<body>标记里 --> 例如:<body onload="Splash()">