offclass onclass style defs doesnt work

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
webmaster_magnolia
Advanced
Advanced
Posts: 12
Joined: Thu Nov 17, 2005 2:40 pm

offclass onclass style defs doesnt work

Post by webmaster_magnolia »

milonic Version 5.734

aI("text= Focus on writing ;url=;offclass=mmleerzoncolor;onclass=mmleerzoffcolor;");

with stale defs in html file:
<style type="text/css">
.mmleerzoncolor { font-weight:bold; font-style:italic;color:#ed8036;}
.mmleerzoffcolor { font-weight:bold; font-style:italic;color:#ed8036;}
</style>

any errors in the code??

thx for help Rainer
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

No errors. Upgrade to 5.735 and test it.

Ruth
webmaster_magnolia
Advanced
Advanced
Posts: 12
Joined: Thu Nov 17, 2005 2:40 pm

Post by webmaster_magnolia »

Hi
tested, but no success
the menu item is displayed in
normal, standard color and no italic style!

working alternative:
aI("text=&nbsp;<i><b>Focus on writing<\/i><\/b>;offcolor=#ed8036;

but not nice in coding ;-)

thanks for help
Rainer
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

It seems the default for fontstyle is normal. That means that in the menuStyle there is no necessity to have fontstyle="normal"; since it will default to that. What I discovered was, if that is coded into the style, then coding a class with font-style:italic; will not override the fontstyle listed in the menu. So, try removing the fontstyle="normal"; from the menuStyle of the menu_data.js file and see if that allows the italic to show in the off/on class.

Ruth
webmaster_magnolia
Advanced
Advanced
Posts: 12
Joined: Thu Nov 17, 2005 2:40 pm

Post by webmaster_magnolia »

Hi,
thanks that s working for bold and italic - because i am using the standards in the menu - the color needs to be set by an extra offcolor=#ed8036;

Its a workaround and i know now whats going on ...

thanks a lot
Rainer
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I don't really know the whole circumstances since I haven't seen your menu data, but it is possible if you need to change one or two items to actually code most of the properties into an item. The links below my name go to the different properties, style, menu and item properties. Many of the style properties have matching item properties, or maybe I should say many of those properties are dual and can be used either in the menuStyle or in an item.

Ruth
Post Reply