作家
登录

会自动逐行上升的文本框

作者: 来源:www.28hudong.com 2013-03-30 04:09:21 阅读 我要评论

<HTML><HEAD><META http-equiv='Content-Type' content='text/html; charset=gb2312'><TITLE>会自动逐行上升的文本框</TITLE> <SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction 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> </HEAD><BODY OnLoad="selectScroller(0);"> <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></HTML>

  推荐阅读

  图片按比例缩放函数

以下是程序代码: <script language="JavaScript"><!--//图片按比例缩放var flag=false;function DrawImage(ImgD,iwidth,iheight){ //参数(图片,允许的宽度,允许的高度) var image=new Image(); image.sr>>>详细阅读


本文标题:会自动逐行上升的文本框

地址:http://www.17bianji.com/kaifa2/JS/31725.html

关键词: 探索发现

乐购科技部分新闻及文章转载自互联网,供读者交流和学习,若有涉及作者版权等问题请及时与我们联系,以便更正、删除或按规定办理。感谢所有提供资讯的网站,欢迎各类媒体与乐购科技进行文章共享合作。

网友点评
自媒体专栏

评论

热度

精彩导读
栏目ID=71的表不存在(操作类型=0)