|
|
| 状态栏跑马灯---聚拢式 |
| 整理:Cnwshow.Com 来源:Internet 整理时间:2008-2-16 |
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>状态栏跑马灯---聚拢式</title>
</head>
<body ONLOAD="wiper()">
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
function makeArray(n)
{
this.length = n;
for (i=0; i<n; i++) this[i]="";
}
stcnt = 16;
msg = "中国个人网页秀 http://www.cnwshow.com";
wmsg = new makeArray(32);
wmsg[0]=msg;
blnk =" ";
for (i=1; i<32; i++)
{
b = blnk.substring(0,i);
for (j=0; j<msg.length; j++)
wmsg[i]=wmsg[i]+msg.charAt(j)+b;
}
function wiper()
{
if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
if (stcnt-- < -40) stcnt=31;
window.status = str;
timeID = window.setTimeout("wiper()",150);
}
// -->
</SCRIPT>
<p></p>
<p>说明:请看状态栏的效果.</p>
</body>
</html>
|
|
|
|
|
|