当前位置: 移动技术网 > IT编程>开发语言>JavaScript > 会自动逐行上升的文本框

会自动逐行上升的文本框

2019年07月31日  | 移动技术网IT编程  | 我要评论
<html><head><meta http-equiv='content-type' content='text/html; charset

<html>
<head>
<meta http-equiv='content-type' content='text/html; charset=gb2312'>
<title>会自动逐行上升的文本框</title>

<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>

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网