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

onclass and offclass


Poster: Martin
Dated: Saturday April 17 2004 - 16:33:48 BST

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


Poster: Maz
Dated: Saturday April 17 2004 - 19:54:11 BST

Not really, have you tried lowercase?
maz


Poster: Martin
Dated: Saturday April 17 2004 - 20:24:23 BST

Hi maz,

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


Poster: Maz
Dated: Saturday April 17 2004 - 22:24:08 BST

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


Poster: Martin
Dated: Saturday April 17 2004 - 22:57:41 BST

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.


Poster: Ruth
Dated: Saturday April 17 2004 - 23:17:11 BST

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


Poster: Martin
Dated: Sunday April 18 2004 - 0:57:43 BST

Hi Ruth,

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