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
870
posted 12 years ago by soup