jsは文字ダイナミック表示効果を実現します.

1363 ワード




 
 <script type="text/javascript">
     var mainfo='>>>        >>>';
	 mainfo+='>>>qwertyuiop       >>>';
     var anch=50;//     
	 function xunhuan(){
	 document.forms[0].uname.value=mainfo.substring(mainfo.length-anch,mainfo.length);
	 mainfo=mainfo.substring(mainfo.length-1,mainfo.length)+mainfo;
	 mainfo=mainfo.substring(0,mainfo.length-1);
	 setTimeout('xunhuan()',200)//      
	 }
</script>

 

    <form>
	    <input name="uname" id="idd" type="text" size="50"/>
	</form>
















</code></pre> 
  <br/> 
  <br style="color:rgb(51,51,51);font-family:'  ';font-size:14px;"/> 
  <span style="color:rgb(51,51,51);font-family:'  ';font-size:14px;"> </span> 666    
  <span style="color:rgb(51,51,51);font-family:'  ';font-size:14px;">  </span> 
  <span style="color:rgb(51,51,51);font-family:'  ';font-size:14px;">                        </span> 
  <br/>      
  <br/> 
 </div> 
</div>
                            </div>
                        </div>