会自动逐行上升的文本框
<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>
</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>
上一篇: checkbox实现全选的多种方法 不断更新 原创
下一篇: 限制复选框的最大可选数