文字在状态栏上从右往左显示,而且是循环的

时间:2021-03-27 20:28:36
< script >
<!--
function  Helpor_net(seed)
var  m1  =   " 欢迎来到小寒的博客! "  ;
var  m2  =   ""  ;
var  msg = m1 + m2;
var  out  =   "   " ;
var  c  =   1 ;
var  speed  =   120 ;
if  (seed  >   100 )
{ seed
-= 2 ;
var  cmd = " Helpor_net( "   +  seed  +   " ) " ;
timerTwo
= window.setTimeout(cmd,speed);}
else   if  (seed  <=   100   &&  seed  >   0 )
for  (c = 0  ; c  <  seed ; c ++ )
{ out
+= "   " ;}
out
+= msg; seed -= 2 ;
var  cmd = " Helpor_net( "   +  seed  +   " ) " ;
window.status
= out;
timerTwo
= window.setTimeout(cmd,speed); }
else   if  (seed  <=   0 )
if  ( - seed  <  msg.length)
{
out
+= msg.substring( - seed,msg.length);
seed
-= 2 ;
var  cmd = " Helpor_net( "   +  seed  +   " ) " ;
window.status
= out;
timerTwo
= window.setTimeout(cmd,speed);}
else  { window.status = "   " ;
timerTwo
= window.setTimeout( " Helpor_net(100) " ,speed);
}
}
}
Helpor_net(
100 );
-->
</ script >