Hi,
I have a div with a height of 200px (viewport). Inside this div there is a ul>li list with many links. Now I have 2 arrows to push/scroll this content up and down.
I'm using this kind of code (will be changed into bind- events):
$("#jq-manufactors_bot").click(function() {
$("#manufactors .toggle").animate({marginTop: "-=100"},400);
});
$("#jq-manufactors_top").click(function() {
$("#manufactors .toggle").animate({marginTop: "+=100"},400);
});
Now I'm not sure how to implement a function, to stop scrolling the content, when the end/beginning is reached. With height() I can get the current height of the list. I need something where I can compare this height with the scrolled way to stop it just in time.
thx TC