See
http://www.switchonthecode.com/tutorials/using-jquery-slider-to-scroll-a-div
Do more with
$(document).ready(function(){
$("#content-slider").slider({
animate: true,
change: handleSliderChange,
slide: handleSliderSlide,
orientation: "vertical"
});
});
function handleSliderChange(e, ui)
{
var maxScroll = $("#content-scroll").attr("scrollHeight") -
$("#content-scroll").height();
$("#content-scroll").animate({scrollTop: ui.value *
(maxScroll / 100) }, 1000);
}
function handleSliderSlide(e, ui)
{
var maxScroll = $("#content-scroll").attr("scrollHeight") -
$("#content-scroll").height();
$("#content-scroll").attr({scrollTop: ui.value * (maxScroll / 100) });
}
Premium Content
You need an Expert Office subscription to comment.Start Free Trial