28、文字在状态栏上从左往右一个一个地显示

28、文字在状态栏上从左往右一个一个地显示

<script language="JavaScript">

var msg = "欢迎来到网页特效,请多提意见。谢谢! " ;

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>

Write a comment

Comments: 0