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

Strange background color


Poster: cgullzcry
Dated: Wednesday August 30 2006 - 14:48:15 BST

I changed the background color in my menu but one item is a different color that I don't see listed in the javascript. The second page I inserted the menu on, a different item is a strange color. What am I missing?

Here is the link to the first page I put the menu on:
http://www.carteretcountyschools.org/mms
If you look closely, you'll see that the "Home" button is a different color blue than the rest of the bar.

Here is the link to the second page I inserted the menu on:
http://www.carteretcountyschools.org/mms/bellschedules.htm
Now you see the "About MCMS" button is a different color blue than the rest of the bar but the "Home" button is fine.

Here is how I have altered the javascript:
bordercolor="#000066";
borderstyle="solid";
borderwidth=1;
fontfamily="Verdana, Tahoma, Arial";
fontsize="75%";
fontstyle="normal";
headerbgcolor="#CC1100";
headercolor="#CC1100";
offbgcolor="#9DB9E1";
offcolor="#000000";
onbgcolor="#A80000";
oncolor="#FFFFFF";
outfilter="randomdissolve(duration=0)";
overfilter="Fade(duration=0.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=4)";
padding=5;
pagebgcolor="#82B6D7";
pagecolor="black";
separatorcolor="#000066";
separatorpadding=5;
separatorsize=1;
subimage="altmenu/arrow.gif";
subimagepadding=7;
}

Any help would be appreciated!


Poster: John
Dated: Wednesday August 30 2006 - 16:31:31 BST

Really strange. I took your code from http://www.carteretcountyschools.org/mms and put it on one of my servers, making no changes at all. The funny blue, which I can see from the links you posted, is no longer there! http://www.west.asu.edu/sa/testsite/. Maybe Ruth can figure this one out.


Poster: Ruth
Dated: Thursday August 31 2006 - 3:04:39 BST

Hi,

It's your pagebgcolor which is making the Home item a different color. Same thing happens when you go to the other page because the page matches the item. The reason it is not covering what seems to be the 'full' item is that you have a 5px margin set in the menu so the pagebgcolor only covers the item minus the 5px top, right, bottom, left.

Ruth

Thanks


Poster: cgullzcry
Dated: Thursday August 31 2006 - 11:14:35 BST

Thank you! I felt like an idiot as I continued to put the menu on other pages and noticed the pattern.

Is there a way to keep the 5px margin and change the color to something else? I just don't like the clash of blues.


Poster: Ruth
Dated: Friday September 1 2006 - 1:14:42 BST

Hi,

The 5px margin doens't have anything to do with the color. It will take either the menubgcolor, or if that is not given, then it assumes the offbgcolor. You can make the pagebgcolor anything you want. Some people eliminate that and use only pagecolor which only changes the font color when you're on the related pages. Or they use only pagecolor and pageborder. For example, you could make pagecolor="#ffffff"; and add pageborder="3px double #ffffff"; That would make the font color white when you're on the related page and the are that is now that different blue would have a double border around that area but since you don't have pagebgcolor listed it would be the same bgcolor as offbgcolor.

Ruth