Currently on my website, I have users clicking on navigation links that turn the backgrounds yellow when clicked.
I saw a similar effect on
On this site, when a user scrolls to an anchor in the document, the corresponding navigation element is highlighted. How does this feature work? How can I implement something like this on my own page?
If you could provide some example code, it would be greatly appreciated. Despite working with JavaScript for some time, I haven't been successful in recreating this effect.
EDIT: To clarify, on the Meteor site, scrolling in the right column changes the font color of the associated menu element in the left column to red. This is not an on-hover effect.