|
将下代码copy入你网页的<head>和</head>中的合适地方即可。 <SCRIPT LANGUAGE=JAVASCRIPT> <!-- function makeArray(n) { this.length = n; for (i=0; i stcnt = 16; msg = "极cool的状态栏效果"; wmsg = new makeArray(32); wmsg[0]=msg; blnk =" "; for (i=1; i<32; i++) { b = blnk.substring(0,i); for (j=0; j } 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> 将你Html文件的<body>改为如下: <BODY ONLOAD="wiper()"> /转载请注明出处,飘蓝工作室——雅虫/ |