implement support for vertical scrolling (fixes #46)
This commit is contained in:
parent
c99d72ff55
commit
22ad44f0a8
2 changed files with 25 additions and 20 deletions
|
@ -74,7 +74,7 @@ $(document).ready(function() {
|
|||
$("#scrollable").stop();
|
||||
});
|
||||
$("#arrright").mouseover(function() {
|
||||
offset = parseInt($("#imgscroller").css("width")) -
|
||||
var offset = parseInt($("#imgscroller").css("width")) -
|
||||
parseInt($("#scrollable").css("width"));
|
||||
$("#scrollable").animate({
|
||||
left: offset + "px"
|
||||
|
@ -91,7 +91,7 @@ $(document).ready(function() {
|
|||
$('#scrollable').stop();
|
||||
});
|
||||
$('#arrdown').mouseover(function() {
|
||||
offset = parseInt($('#imgscroller').css('height')) -
|
||||
var offset = parseInt($('#imgscroller').css('height')) -
|
||||
parseInt($('#scrollable').css('height'));
|
||||
$('#scrollable').animate({
|
||||
top: offset + "px"
|
||||
|
|
Reference in a new issue