Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:16

Font weight and openmenubyurl


Poster: r3tr0x
Dated: Wednesday February 1 2006 - 13:29:34 GMT

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.


Poster: John
Dated: Wednesday February 1 2006 - 14:56:02 GMT

Use pagecolor= and pagebgcolor= settings to highlight the whole menu item.


Poster: Ruth
Dated: Wednesday February 1 2006 - 15:27:01 GMT

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


Poster: r3tr0x
Dated: Wednesday February 1 2006 - 18:04:40 GMT

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!