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:45
Mutiple Styles in one menu
Poster: skadera
Dated: Friday December 29 2006 - 17:28:17 GMT
Hi,
I am trying to place two styles within one menu. Here is the code:
Code:
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