Active State Navigation Menu Item

intlcool's picture

Hi All,

I really enjoyed the last meet up on the topic of themes, thank you for the wonderful discussions. Since then I realized that I have had another pertinent question regarding theming with rollover and active menu images. I am using the image menu module to create rollovers for my primary navigation. Any ideas on how to have a page in a site represented by an active state button? Attached is an image of what I am trying to achieve.

Much thanks,

D

AttachmentSize
activeNav.jpg23.21 KB
Groups:
Login to post comments

I'm not sure on what the

BTMash's picture
BTMash - Tue, 2009-07-28 22:09

I'm not sure on what the image menu module does, but I think by default a link is given a class 'active' if that link is the same as the current page it is on. You could use CSS rules on that active menu link and change the image?


I wish menus had an Active class

Chris Charlton's picture
Chris Charlton - Wed, 2009-07-29 15:47

UPDATE TO POST: (I'm tired) I misspoke earlier... I meant I'd like the active class to be part of core to compliment Menus already having a class for first and last. Maybe this would be good for the Code Sprint in LA this August.

In my last edit I mention first & last, but I was mistaking menus with something else. Again, I'm tired today.