Playing around, I really didn't figure out how the script worked but, this:
Code:
javascript:alert(theThumb.onDrag(0,200),theThumb.style.top='72px')
Pasted into the address bar made the example scroller you linked to in your post go to the bottom. So, I'd try adding it to the onload function (from your demo link):
Code:
<script language="javascript">
var theHandle, theRoot, theThumb, theScroll;
var thumbTravel, ratio;
theScroll = new ypSimpleScroll("scroll", 2, 19, 128, 75);
window.onload = function() {
theHandle = document.getElementById("handle");
theRoot = document.getElementById("root");
theThumb = document.getElementById("thumb");
theScroll.load();
Drag.init(theHandle, theRoot);
Drag.init(theThumb, null, 135, 135, 19, 71);
// the number of pixels the thumb can travel vertically (max - min)
thumbTravel = theThumb.maxY - theThumb.minY;
// the ratio between scroller movement and thumbMovement
ratio = theScroll.scrollH / thumbTravel;
theThumb.onDrag = function(x, y) {
theScroll.jumpTo(null, Math.round((y - theThumb.minY) * ratio));
}
theThumb.onDrag(0,200);
theThumb.style.top='72px';
}
</script>
The 200 controls how far you want the content (text) to scroll and the 72 controls the position desired for the little slider thingy.
Bookmarks