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

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

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

Post by nwilcox »

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!
Last edited by nwilcox on Fri Aug 28, 2009 3:13 pm, edited 1 time in total.
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: onclass, offclass, and pageclass are not working

Post by Ruth »

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: Select all

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.
User avatar
nwilcox
Mega Advanced
Mega Advanced
Posts: 269
Joined: Sat Aug 20, 2005 6:14 am
Location: Indianapolis, IN
Contact:

Re: onclass, offclass, and pageclass are not working

Post by nwilcox »

Ruth you are the best!!!!!

Worked like a charm :D
Nick Wilcox
Web Developer
ServerSide, Inc.
http://www.serverside.net
Post Reply