12、输入字符出现状态栏

12、输入字符出现状态栏

<script language="JavaScript">

 

Ret = prompt('你这里输入什么,在状态栏上就会显示什么',"你这里输入什么,在状态栏上就会显示什么")

 

var temp

var f =

"                                                                  "

var f = f + (Ret)

var speedtogo = 50

 

var counter

 

 

function scrollon() {

       

   temp  = f.substring(0,1);

   f += temp

   f    = f.substring(1,100);

   window.status = f.substring(0,100);

 

  counter    = setTimeout("scrollon()",speedtogo);

 

 }

 

</script>

</head>

 

<body onLoad="scrollon()">

Write a comment

Comments: 0