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;
}
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;
}
asdf
asdf
asdf
asdf
sadf
asdf
asdf
asdf
asdf
asdf
asdf
asd
f</textarea>
<button onmouseup=stop() onmousedown=up()>up</button><button onmousedown=down() onmouseup=stop()>down</button>
<script>
var Timer=null;
function up()
{aa.doScroll("scrollBardown")
Timer=setTimeout("up()",100)
}
function down()
{aa.doScroll("scrollBarUp")
Timer=setTimeout("down()",100)
}
function stop()
{clearTimeout(Timer)}
</script>
难道这样不是你说的效果吗?
<textarea id=aa width="20" height="20" rows=1>
1
2
3
</textarea>