I need help with the following, i have a menu that i want to stay fixed when the page scrolls down.The first part of the page is white and then after some 800px all the rest is black background. I want to be able to change the color of the menu to white when the user scrolls into the black section. I know how to change it by adding and removing classes in jQuery, but i am having problems writing code how to detect how many of the page is scrolled. I believe it should be some simple if statement calculating the top offset, but i really cant solve it myself.
Thanks, Mirko