Font weight and openmenubyurl

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
r3tr0x
Advanced
Advanced
Posts: 12
Joined: Wed Jan 11, 2006 12:02 pm

Font weight and openmenubyurl

Post by r3tr0x »

Hey guys

Just a quick one. Is there a menu property which can set the font weight to bold 'after' a new page has loaded and the openmenubyurl script has done its magic? I'm currently using oncolor which changes the font color when you hover over an item and this is retained when the active submenu item is highlighted. But I can't seem to change its weight. The reason I'm asking is just to make it more noticable to the user as to what page they are currently on.

Any suggestions would be greatly appreciated.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

Use pagecolor= and pagebgcolor= settings to highlight the whole menu item.
John
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

Along with the pagebgcolor, pagecolor, pagebgimage, pageimage, there is also something called pageclass to allow you to set up a class for the active page highlighting.

To do this with your setup,


1. create the class in your css, e.g.

.mmpage{font-weight:bold}

2. Place this below your menuStyle definition

subStyle=new copyOf(menuStyle);
subStyle.pageclass="mmpage";

3. in your submenus change style=menuStyle to style=subStyle

There reason you need the different style is that you don't want that class to apply to the menuStyle, though if you're using image it probably won't. You can test it just putting it in the menuStyle and see if that works.

Ruth
r3tr0x
Advanced
Advanced
Posts: 12
Joined: Wed Jan 11, 2006 12:02 pm

Post by r3tr0x »

Hi Ruth

Thanks a lot for the suggestion - it worked a treat. And you were right, as I was using images simply putting it in the menu class worked fine.

Cheers!
Post Reply