Posted by blanesworld on July 28, 2009 at 5:09pm
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
Attachment | Size |
---|---|
activeNav.jpg | 23.21 KB |
Comments
I'm not sure on what the
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
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.
Chris Charlton, Author & Drupal Community Leader, Enterprise Level Consultant
I teach you how to build Drupal Themes http://tinyurl.com/theme-drupal and provide add-on software at http://xtnd.us