My slider is currently starting at the bottom of the div. I'd like it
to start at the Top of the div and when I pull down, slide my content
up.
I have looked on the list... I'm hoping that this example can be a
little bit simpler.
Any suggestions would be very helpful
Here's my code:
var scrollBlock = $('.contentViewer').height();
var displayBlock = $('.contentBlock').height();
var maxScroll = scrollBlock - displayBlock;
if (scrollBlock <= displayBlock) {
$('#slider').hide();
} else {
$("#slider").slider({
orientation: "vertical",
min: 0,
max: maxScroll,
slide: function (ev, ui) {
$('.contentViewer').css('top', '-' + ui.value
+ 'px');
},
});
};
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---