文字在狀態(tài)欄上從左往右一個(gè)一個(gè)地顯示,就象你打出的字一樣
發(fā)布時(shí)間:2008-12-20 閱讀數(shù): 次 來源:網(wǎng)樂原科技
<script language="JavaScript">
var msg = "歡迎來到細(xì)溪驛站,請(qǐng)多提意見。謝謝! " ;
var interval = 120
var spacelen = 120;
var space10=" ";
var seq=0;
function Scroll() {
len = msg.length;
window.status = msg.substring(0, seq+1);
seq++;
if ( seq >= len ) {
seq = 0;
window.status = '';
window.setTimeout("Scroll();", interval );
}
else
window.setTimeout("Scroll();", interval );
}
Scroll();
</script>