onclass and offclass

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

onclass and offclass

Post by Martin »

Hi,

I tried to use the onclass and offclass properties in a style definition, but it does not work.

my classes are:

.NavOff {font-weight:normal;}
.NavOn {font-weight:bold;}

This is the style:

Code: Select all

with(NavMainStyle=new mm_style()){fontfamily='Verdana,Arial';fontstyle='normal';fontweight='normal';fontsize='11';padding=3;align='left';offcolor='#FFFFFF';offclass='NavOff';onclass='NavOn';oncolor='#FFFFFF';offbgcolor='#C4BF8A';onbgcolor='#ABA361';pagecolor='#FFFFFF';pagebgcolor='#ABA361';separatorcolor='#FFFFFF';separatorsize='2';bordercolor='#000000';borderwidth='1';borderstyle='raised';low3dcolor='#ABA361';high3dcolor='#FFFFFF';swap3d=1;subimage='images/icons/arrow_right12x11_0.gif';onsubimage='images/icons/arrow_right12x11_1.gif';}
I expected, that a selected item should be bold now, but it wasn't.

Any idea, what happended here?
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Not really, have you tried lowercase?
maz
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi maz,

CSS is caseless, so i didn't try it.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Personally I didn't like the results I was getting with css, but that was quite a few versions back. Ruth has posted about css, and I think she has it figured out. I wonder if it works better in menuitem :?

maz
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi Maz,

hmm, this answer does not really help me. But it's good to know, that I'm not alone here ;)

First, i tried the onBold attribute, but it didn't work out. That's the reason i moved to the css attributes.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Martin,

The on / off class with reference to the font-weight attribute is not working. It does work for font-size, which I checked, and it used to work for font-weight. Andy might have to take a look.

Ruth
User avatar
Martin
Mega User
Mega User
Posts: 113
Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland

Post by Martin »

Hi Ruth,

Thank you for the info. I will wait until this thing is fixed.
cheers

====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
Post Reply