Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#_Movie_Downloads_Scroll").slider({
- orientation: "vertical",
- animate: true,
- value: 100,
- change: function(event, ui){
- var content = $('#_Movie_Downloads_Frame'), maxScroll = content.attr("scrollHeight") - content.height();
- content.animate({scrollTop: (100 - ui.value) * (maxScroll / 100) });
- },
- slide: function(event, ui){
- var content = $('#_Movie_Downloads_Frame'), maxScroll = content.attr("scrollHeight") - content.height();
- content.attr({scrollTop: (100 - ui.value) * (maxScroll / 100) });
- }
- });
Add Comment
Please, Sign In to add comment