qiqiBoKe

 <script type="text/javascript" >

              function show() {                 var info = document.getElementById(\'Text1\');                 info.value = info.value.substr(1) + info.value[0];               }               setInterval(show, 500);                          function show1() {                   var info1 = document.getElementById(\'Text2\');                   info1.value = info1.value[info1.value.length-1] + info1.value.substr(0, info1.value.length-1);               }               setInterval(show1, 500);

    </script>

 

    <input id="Text1" type="text" value="欢迎来测试                         " /> <input id="Button1" type="button" value="滚动"/><br />         <input id="Text2" type="text" value="                         北京欢迎您" /> <input id="Button2" type="button" value="滚动" onclick="show1()" />

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-02-05
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案