代码如下:
复制代码到head
注明:
var upH = 13;//向上的箭头的高度
var upW = 9; //向上的箭头的宽度
var downH = 13;//向下的箭头的高度
var downW = 9;//向下的箭头的宽度
var dragH = 26; //滚动条的高度
var dragW = 9; //滚动条的宽度
var scrollH =268; //滚动体的高度
var speed =9; //滚动的速度
这里是各种属性的配置
更改body
复制代码到body
id=drag
style="LEFT: 303px;POSITION: absolute; TOP: 116px">
height=26 src="slider.gif" width=9> id=ruler
style="TOP: 116px">style="LEFT: 303px; POSITION: absolute; TOP: 100px">
height=13 alt="" src="scrollup.gif" width=9 border=0> style="LEFT: 303px; POSITION: absolute; TOP: 386px">
height=13 alt="" src="scrolldown.gif" width=9 border=0> id=scrollerContentClip
style=" LEFT: 100; VISIBILITY: visible; OVERFLOW: hidden; WIDTH: 200; CLIP: rect(0px 240px 300px 0px); POSITION: absolute; TOP: 100; HEIGHT: 300;border:#CC6600 1px solid">id=scrollerContent style="width: 200; height: 300">
文字内容