Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Martin
Mega User
Posts: 113 Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland
Post
by Martin » Sat Apr 17, 2004 4:33 pm
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
====================================
Maz
Milonic God
Posts: 1717 Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:
Post
by Maz » Sat Apr 17, 2004 7:54 pm
Not really, have you tried lowercase?
maz
Martin
Mega User
Posts: 113 Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland
Post
by Martin » Sat Apr 17, 2004 8:24 pm
Hi maz,
CSS is caseless, so i didn't try it.
cheers
====================================
Merlin Consulting
Martin Schaible
Bahnhofstrasse 27
CH-8702 Zollikon
====================================
Maz
Milonic God
Posts: 1717 Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:
Post
by Maz » Sat Apr 17, 2004 10:24 pm
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
Martin
Mega User
Posts: 113 Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland
Post
by Martin » Sat Apr 17, 2004 10:57 pm
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
====================================
Ruth
Team
Posts: 8763 Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:
Post
by Ruth » Sat Apr 17, 2004 11:17 pm
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
Martin
Mega User
Posts: 113 Joined: Fri Jul 05, 2002 11:57 pm
Location: Zollikon, Switzerland
Post
by Martin » Sun Apr 18, 2004 12:57 am
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
====================================