Mutiple Styles in one menu

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
skadera
Beginner
Beginner
Posts: 4
Joined: Thu Jun 08, 2006 11:36 pm

Mutiple Styles in one menu

Post by skadera »

Hi,

I am trying to place two styles within one menu. Here is the code:

Code: Select all


with(menuStyle=new mm_style()){
fontfamily="Verdana, Geneva, Arial, sans-serif";
fontsize="10px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="";
headercolor="#000000";
offbgcolor="";
offcolor="#ffffff";
onbgcolor="";
oncolor="#990000";
outfilter="randomdissolve(duration=0.5)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);)";
padding=4;
pagebgcolor="";
pagecolor="";
separatorcolor="#ffffff";
separatorsize=1;
separatorimage="";
}

subStyle=new copyOf(menuStyle); 
subStyle.offbgcolor="cccccc";
subStyle.offcolor="#003276";
subStyle.onbgcolor="cccccc";
subStyle.oncolor="#733A1A";
subStyle.pagebgcolor="#e9e9e9";
subStyle.pagecolor="black";
subStyle.separatorcolor="#000000";

The menu is fine in IE but does not show the subStyle in Firefox.

you can see it here

http://wishon.kaderanet.com/catalog.php
skadera
Beginner
Beginner
Posts: 4
Joined: Thu Jun 08, 2006 11:36 pm

Post by skadera »

hi again

I fixed it. I just forgot the # in my color.

sk
Post Reply