Here is a simple implentation of it:
Code:
<html>
<head>
<style type="text/css">
#content {
width:200px;
height:100px;
border:1px solid black;
overflow:hidden
}
#scroller {
position:absolute;
border:1px solid black;
width:15px;
writing-mode:tb-rl;
font-weight:bold;
font-family:arial
}
#outerscroller {
height:100px;
width:25px;
top:15px;
left:209px;
border:1px solid gray;
position:absolute;
overflow:hidden
}
</style>
<script type="text/javascript">
function scroll() {
var offset = event.clientY - scroller.offsetTop
document.onmousemove=function() {
content.scrollTop=event.clientY-15-offset
scroller.style.top=event.clientY-offset
}
document.onmouseup=function() {
document.onmousemove=null
}
}
</script>
</head>
<body>
<div id="content">
Line 1
<br>Line 2
<br>Line 3
<br>Line 4
<br>Line 5
<br>Line 6
<br>Line 7
<br>Line 8
<br>Line 9
<br>Line 10
<br>Line 11
<br>Line 12
<br>Line 13
<br>Line 14
<br>Line 15
</div>
<div id="outerscroller">
<div id="scroller" onmousedown="scroll()">Scrollbar-1</div>
</div>
</body>
</html>
Bookmarks