我要一个多行文本框的效果!!急!

我曾经在某些网站上看到一个象多行文本框的效果,就是:

象将多行的文字放在文本框中,如果文字太多,旁边就有箭头上下移动查看文字。
重要的是它只有滚动条的上下两个箭头,而没有滚动条中间的移动条(我要的就是这个)!

网上很多,但要用的时候就找不到,只要给个例子就行,成了就给分。
---------------------------------------------------------------

body {
FONT-SIZE: 9pt;
COLOR: #000000;
FONT-FAMILY: "宋体";
BACKGROUND-COLOR: #0099FF;
scrollbar-face-color: #4cbebe;
scrollbar-shadow-color: #337f7f;
scrollbar-highlight-color: #000099;
scrollbar-3dlight-color: #4cbebe;
scrollbar-darkshadow-color: #000099;
scrollbar-track-color: #0099FF;
scrollbar-arrow-color: #ff0000;
}
---------------------------------------------------------------

 1<textarea height="20" id="aa" style="overflow:hidden" width="20">   
 2asdf   
 3asdf   
 4asdf   
 5asdf   
 6sadf   
 7asdf   
 8asdf   
 9asdf   
10asdf   
11asdf   
12asdf   
13asd   
14f</textarea>
1<button onmousedown="up()" onmouseup="stop()">up</button>
1<button onmousedown="down()" onmouseup="stop()">down</button>
 1<script>   
 2var Timer=null;   
 3function up()   
 4{aa.doScroll("scrollBardown")   
 5Timer=setTimeout("up()",100)   
 6}   
 7function down()   
 8{aa.doScroll("scrollBarUp")   
 9Timer=setTimeout("down()",100)   
10}   
11function stop()   
12{clearTimeout(Timer)}   
13</script>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus