狀態(tài)欄跑馬燈
發(fā)布時間:2008-08-01 閱讀數(shù): 次 來源:網(wǎng)樂原科技
將下代碼copy入你網(wǎng)頁的<head>和</head>中的合適地方即可。
<SCRIPT LANGUAGE=JAVASCRIPT>
<!--
var msg = "大量大量的javascript,請訪問網(wǎng)頁之作的javascript欄目";
var speed = 300;
var msgud = " " + msg;
function statusScroll() {
if (msgud.length <msg.length) msgud += " - " + msg;
msgud = msgud.substring(1, msgud.length);
window.status = msgud.substring(0, msg.length);
window.setTimeout("statusScroll()", speed);
}
-->
</SCRIPT>
將你Html文件的<body>改為如下:
<BODY onload="window.setTimeout('statusScroll()', 500)">