
January 30th, 2013, 02:32 PM
|
|
Registered User
|
|
Join Date: Jan 2013
Posts: 4
Time spent in forums: 1 h 42 m 38 sec
Reputation Power: 0
|
|
|
CSS Image Menu - How to Have Button default to "down" if on that page
I'm not exactly sure the best way to phrase this (and it is possible I will need jQuery or some such other to accomplish this). I searched for CSS navigation and didn't see any threads which answered.
Recreating a menu that was hard coded per page.
Buttons have 2 states, normal and hover/down.
If you are on the home page, the button is 'down', all others are normal. If you're on About, the about button is 'down', all others are normal.
I think I'm going to use this one image method to recreate the buttons (and get rid of the DW pre-loader originally used).
Code:
http://www.wellstyled.com/css-nopreload-rollovers.html
Is there a way via CSS (or JS?) to tell the button to be in the down state if the url matches X?
The menu has already been converted to the typical horizontal <li> .
|