14、状态栏文字从左弹出

14、状态栏文字从左弹出

<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>

 

</head>

 

Write a comment

Comments: 0