会自动逐行上升的文本框_综合其它特效

模板酷站
  •       3/5
  •       1
  •       2
  •       3
  •       4
  •       5
查看演示效果

      织梦DedeCMS视频教程买空间 租服务器 选网硕互联! 无忧站长工具,百度权重一键全查!

      会自动逐行上升的文本框,您可以先修改部分代码再运行.

      <!--要完成此效果把如下代码加入到<body>区域中--> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function selectScroller(n) { optlist = document.scrollform.scroller; optlist[optlist.length] = new Option(optlist[0].text, "", false, false); optlist[0] = null; optlist.selectedIndex = -1; n = (n + 1) % optlist.length; // change the speed below: 1000 = 1 second. setTimeout("selectScroller("+n+")",2000); } // End --> </script> <!--要完成此效果把如下代码加入到<body>区域中--> <center> <form name="scrollform"> <select name="scroller" size=8> <option> <option> <option> <option> <option> <option> <option> <option> <option>This select option list will <option>scroll text by copying <option>the top line to the bottom <option>line before deleting the <option>top line. This moves the <option>options up one line and <option>gives the impression of <option>scrolling. <option> <option>You can leave as many <option>blank lines as you feel <option>necessary to give the <option>look of begining and <option>ending. <option> <option>This script was written <option>in response to those <option>who wanted a news <option>scroller to work within <option>a table's cell and for <option>those who want old <option>browsers to also see <option>a scoller on the page. <option> <option> </select> </form> </center> <!--要完成此效果把如下代码加入到<body>区域中--> <body OnLoad="selectScroller(0);">