Archived
1
0
Fork 0

implement support for vertical scrolling (fixes #46)

This commit is contained in:
Jan Dittberner 2009-07-11 19:14:36 +00:00
parent c99d72ff55
commit 22ad44f0a8
2 changed files with 25 additions and 20 deletions

View file

@ -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"