white edges on menu not good

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
rickferens
Beginner
Beginner
Posts: 3
Joined: Mon Apr 13, 2009 5:03 pm

white edges on menu not good

Post by rickferens »

Hello,

Is there a way to get rid of the white edge on the right and bottom of the menu block? See www.nationalaccountdoors.net. I had recently updated the menu but to no avail. It looks great on the Mac but the white edges appear on a PC with Explorer. I remember seeing a post about this issue years ago but it doesn't turn up in a search. Your help would be appreciated.

The menu is great in all other respects!

Thanks, Rick Ferens
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Re: white edges on menu not good

Post by Andy »

Hi,

I take it this only happens in Internet Explorer?

If so, it's probably the drop shadow on the main menu.

Here's a copy of your menu with some modifications. I made a copy of your menuStyle and applied some changes to it, then declared the main menus style as mainStyle:

Code: Select all

fixMozillaZIndex=true; //Fixes Z-Index problem  with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=200;
_menuOpenDelay=100;
_subOffsetTop=10;
_subOffsetLeft=-0;

with(menuStyle=new mm_style()){
bordercolor="#000000";
borderstyle="solid";
borderwidth=0;
fontfamily="Verdana, Tahoma, Arial";
fontsize="80%";
fontstyle="normal";
offbgcolor="#000000";
offcolor="#ffffff";
onbgcolor="#4D5D8C";
oncolor="#ffffff";
outfilter="randomdissolve(duration=0.3)";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";
padding=5;
separatorcolor="#000000";
separatorsize=4;
subimagepadding=6;
}

/* Take a snapshot of menuStyle */
mainStyle=new copyOf(menuStyle)
/* Set the new mainStyle's outfilter and overfilters to null */
mainStyle.overfilter=null;
mainStyle.outfilter=null;

with(milonic=new menuname("Main Menu")){
top=14;
left=440;
alwaysvisible=1;
orientation="horizontal";
/* Apply the new mainStyle to just the main menu */
style=mainStyle;
aI("showmenu=Home;text=Home;url=http://www.nationalaccountdoors.net/index.html;");
aI("showmenu=Products;text=Products;url=http://www.nationalaccountdoors.net/products.html;");
aI("showmenu=Services;text=Services;url=http://www.nationalaccountdoors.net/services.html;");
aI("showmenu=Projects;text=Projects;url=http://www.nationalaccountdoors.net/projects.html;");
aI("showmenu=Capabilities;text=Capabilities;url=http://www.nationalaccountdoors.net/capabil.html;");
aI("showmenu=Profile;text=Profile;url=http://www.nationalaccountdoors.net/profile.html;");
aI("showmenu=Contact Us;text=Contact Us;url=http://www.nationalaccountdoors.net/contact.html;");
}

with(milonic=new menuname("Products")){
overflow="scroll";
style=menuStyle;
aI("showmenu=Doors and Frames;text=Doors and Frames;url=http://www.nationalaccountdoors.net/doorfram.html;");
aI("showmenu=Hardware;text=Hardware;url=http://www.nationalaccountdoors.net/hardware.html;")
aI("text=Bath Accessories;url=http://www.nationalaccountdoors.net/bath.html;")
aI("text=Specialty Items;url=http://www.nationalaccountdoors.net/special.html;")
}

with(milonic=new menuname("Doors and Frames")){
style=menuStyle;
aI("text=Metal Doors;url=http://www.nationalaccountdoors.net/metal.html;");
aI("text=Wood Doors;url=http://www.nationalaccountdoors.net/wood.html;");
}

with(milonic=new menuname("Hardware")){
style=menuStyle;
aI("text=Yale, ASSA ABLOY;url=http://www.nationalaccountdoors.net/assa.html;")
aI("text=Corbin Russwin, ASSA ABLOY;url=http://www.nationalaccountdoors.net/corbin.html;")
aI("text=Cal Royal, Design, Dorma;url=http://www.nationalaccountdoors.net/calroy.html;")
}

with(milonic=new menuname("Services")){
style=menuStyle;
aI("text=Specification Writing;url=http://www.nationalaccountdoors.net/specs1.html;");
aI("text=Bid Packages;url=http://www.nationalaccountdoors.net/specs2.html;");
aI("text=Project Management;url=http://www.nationalaccountdoors.net/specs3.html;");
aI("text=Installation;url=http://www.nationalaccountdoors.net/install.html;");
}

with(milonic=new menuname("Capabilities")){
style=menuStyle;
}

with(milonic=new menuname("Profile")){
style=menuStyle;
}

with(milonic=new menuname("Contact Us")){
style=menuStyle;
}

drawMenus();
rickferens
Beginner
Beginner
Posts: 3
Joined: Mon Apr 13, 2009 5:03 pm

Re: white edges on menu not good

Post by rickferens »

Thanks Andy,

It seems to work fine on my PC, I will check it on several versions of IE. And yes, it was only occurring on a PC.

I didn't know there was a drop shadow feature, thanks for your the time and the code!

Rick Ferens
Post Reply