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

Changing Colors


Poster: rgw1977
Dated: Friday March 11 2005 - 2:50:10 GMT

I am having trouble with changing colors.

Specifically the Background Color (onbgcolor). See Below:

Here is the Vert Style coding:

with(vertStyle=new mm_style()){
bordercolor="rgb(133, 12, 169)";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="rgb(255, 143, 255)";
headerborder=1;
headercolor="rgb(255, 143, 255)";
image="18_blank.gif";
imagepadding=3;
menubgimage="backoff_green.gif";
offbgcolor="transparent";
offcolor="#000000";
onbgcolor="rgb(170, 175, 229)";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="on_13x13_greyboxed.gif";
outfilter="randomdissolve(duration=0.2)";
overfilter="Fade(duration=0.1);Alpha(opacity=95);Shadow(color=rgb(170, 175, 229)', Direction=135, Strength=3)";
padding=3;
pagebgcolor="#993399";
pagecolor="#000066";
pageimage="db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorpadding=3;
separatorwidth="85%";
subimage="black_13x13_greyboxed.gif";

Here is the horiz style:

with(horizStyle=new mm_style()){
styleid=1;
bordercolor="rgb(133, 12, 169)";
borderstyle="solid";
borderwidth=1;
fontfamily="arial, tahoma";
fontsize="72%";
fontstyle="normal";
headerbgcolor="#AFD1B5";
headerborder=1;
headercolor="#000099";
offbgcolor="#CFE2D1";
offcolor="#000000";
onbgcolor="rgb(170, 175, 229)";
onborder="1px solid #999999";
oncolor="#000000";
onsubimage="on_downboxed.gif";
overbgimage="backon_beige.gif";
padding=3;
pagebgcolor="#993399";
pagecolor="#000066";
pageimage="db_red.gif";
separatoralign="right";
separatorcolor="#999999";
separatorwidth="85%";
subimage="downboxed.gif";


According to this the color in the specified area should be the same on both the horiz and the vert menus, however, if you look at my page http://www.worldfurnituremall.net/new/index.html you will see that on the horiz menu, it is still that yellowish color, just as it was as you have it on your web site.

Can you advise what I am doing wrong here?

Thanks, Ryan!


Poster: Ruth
Dated: Friday March 11 2005 - 5:52:52 GMT

You still have the overbgimage listed in the menu
Code:
overbgimage="backon_beige.gif";
That's that kind of yellow/beige color. When I first moused over it turned purple, that's because the image wasn't loaded yet, the next time, the image was loaded so when I moused over it used that overbgimage.

Ruth


Poster: rgw1977
Dated: Friday March 11 2005 - 16:55:35 GMT

Oh, ok. I was comparing the two styles, and I could not figure out what was wrong. Thank you so much for your help. This is a great scrips, and I am having fun playing with it.