文字从左往右移动显示

<script lanuage="JavaScript">

var temp
var f = "                              "
var f = f + "Put your text here."
var speedtogo = 100

var counter


function scrollon() {
       
   temp  = f.substring(0,1);
   f += temp
   f    = f.substring(1,f.length);
   document.wow.display.value = f.substring(0,55);
 
  counter    = setTimeout("scrollon()",speedtogo);

 }

</script>

<body  onLoad="scrollon()">
<form name="wow">
<input type="text" size="50" name="display" value="">
</form>

</body>

你可能感兴趣的:(移动)