Intelligent Navigation Bars with JavaScript and CSS
# Linked to 20 February 2008, 06:34 in Tutorials by Sam Brown
I’ve developed a trick over the years that I’ve used on a number of websites now for making my sites’ navigation bars “intelligent” or “self-aware.” By that, I mean that the navigation bar automatically knows which tab/button/whatever should be considered the currently active link, without having to manually specify a class or ID on either the body tag or on the links themselves.
Tweet Subscribe to the RSS Feed →