Hello,
I came across great sites which had a cool feature, which I'll try to explain here.
I tried to study the .js sources, but as I'm a newbie I couldn't decipher the minified versions. :(
Let's say I have the following markup:
<ul id="posts">
<li id="photo"> Lorem ipsum </li>
<ii id="quote"> Lorem ipsum dolor </li>
</ul>
<div id="logo">My Logo</div>
What I want to do is: when user enters the li#photo area, jQuery would change the #navigator background color to, say, blue. If the user keeps scrolling down he would enter the li#quote, and when he enters the area, jQuery would change #navigator bg color to red.
When I say "enter the area", I mean by scrolling and not by mouse hovering.
There's a Tumblr theme that kind of does what I'm trying to explain:
http://www.figueric.com/ (scroll down and see the navigator on the right)
The only thing I can come up is to use the .addclass feature, but I don't know where to start, specially when it comes to recognizing that the user is viewing the li#photo area, for example.
Can you guys give me some light here?