Profile
Achievement

soup's Recent Snippets
- All /
« Prev 1 Next »
This is a very simple way of highlighting the current page of a menu. It uses javascipt to take the current url and cross checks it against any URLs that match in the menu. If one matches then add an ‘active’ class to it.
Be careful with #’s t...
1
1002
posted 13 years ago by soup