Jquery novice to ninja: why scrolling floating pane works strange in my case?

hello forum ninjas!

i tried to ad a bit of jquery to a pane in webpage under:


problem: the scrolling of the division does not stop at the bottom of the page, or, only chrome: at opening of the page, the division scrolls automatic to bottom of the page.

the code is very little:

$(window).scroll(function() {
.animate({top: $(document).scrollTop()},‘slow’,‘easeOutQuad’);

it works in the example page of the book. why not in my case?

thanks for any help!


Minus some pixels that fits with your div like this.

 .animate({top: $(document).scrollTop()[COLOR="#FF0000"]-200[/COLOR]},'slow','easeOutQuad');

thanks, it changes things but not really the solution. but thanks anyway for help.