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:08

onclass, offclass, and pageclass are not working [solved!]


Poster: nwilcox
Dated: Thursday August 27 2009 - 22:24:46 BST

http://clients1.serverside.net/acfas/in ... e=interior

Vertical menu and vertical menu subs are using offclass/onclass/pageclass with background image swaps.

However, the background images are not being loaded. So I tried setting a text color to verify of the onclass was even working. It is not.

Can anyone see what is wrong?

Thanks!

Re: onclass, offclass, and pageclass are not working


Poster: Ruth
Dated: Friday August 28 2009 - 1:16:09 BST

Hi,

Well, I figured it out though it took awhile. To get the background image to work, instead of doing off/on bgcolor="transparent"; make it off/on bgcolor=""; . I don't know why it doesn't work with using transparent.

As to the text color problem, again, it seems to not want a color listed in the style if you are using off/on class in the item. That is, the menu style is dominating, though it shouldn't and hasn't in the past.

If you are using the class in all items, then I suggest you just eliminate the off / on color in the style, or make it what you want it to be for all items. If you are not using the css in all items, and want the text color to be different for those not using the css off/on class, then the best way to do it is: if more items don't use the css, then leave the off/on color in the style and for those items using css code the color into the item.

Code:
aI("onclass=menuItemOn;offclass=menuItemOff;pageclass=menuItemPage;text=Page link;url=;offcolor=purple;oncolor=purple;");


If more items use the class, then change the off/on color to offcolor="";oncolor=""; and put the offcolor/oncolor into the items.

I hope that made sense. I'm sorry you are having so many problems this time. I don't remember that we've run into so many before.

Ruth

I hope that made sense.

Re: onclass, offclass, and pageclass are not working


Poster: nwilcox
Dated: Friday August 28 2009 - 15:12:54 BST

Ruth you are the best!!!!!

Worked like a charm :D