Swap CSS class on the basis of Scroll Position with Javascript

Posted by Alan on Stack Overflow See other posts from Stack Overflow or by Alan
Published on 2010-03-16T12:01:12Z Indexed on 2010/03/16 12:06 UTC
Read the original article Hit count: 242

Filed under:
|

I have followed answer given by CMS in relation to getting a menu to stay in one place on the page whilst you scroll the page as per this original question and it works very well but I also have a number of images on the page where I'm using the jquery fancylink plugin to show an enlarged image on click. The problem is when you then close the fancylink popup and scroll to the top of the page the static DIV then decides to stick to the very top of the page. Any ideas or help would this would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about static

Related posts about div