<HTML>
<HEAD>
<METAhttp-equiv='Content-Type'content='text/html;charset=gb2312'>
<TITLE>会自动逐行上升的文本框</TITLE>
<SCRIPTLANGUAGE="JavaScript">
<!--Begin
functionselectScroller(n){
optlist=document.scrollform.scroller;
optlist[optlist.length]=newOption(optlist[0].text,"",false,false);
optlist[0]=null;
optlist.selectedIndex=-1;
n=(n+1)%optlist.length;
//changethespeedbelow:1000=1second.
setTimeout("selectScroller("+n+")",2000);
}
//End-->
</script>
</HEAD>
<BODYOnLoad="selectScroller(0);">
<center>
<formname="scrollform">
<selectname="scroller"size=8>
<option>
<option>
<option>
<option>
<option>
<option>
<option>
<option>
<option>Thisselectoptionlistwill
<option>scrolltextbycopying
<option>thetoplinetothebottom
<option>linebeforedeletingthe
<option>topline.Thismovesthe
<option>optionsuponelineand
<option>givestheimpressionof
<option>scrolling.
<option>
<option>Youcanleaveasmany
<option>blanklinesasyoufeel
<option>necessarytogivethe
<option>lookofbeginingand
<option>ending.
<option>
<option>Thisscriptwaswritten
<option>inresponsetothose
<option>whowantedanews
<option>scrollertoworkwithin
<option>atable'scellandfor
<option>thosewhowantold
<option>browserstoalsosee
<option>ascolleronthepage.
<option>
<option>
</select>
</form>
</center>
</BODY></HTML>
|