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

Horizontal Menu Expands


Poster: mario
Dated: Tuesday October 31 2006 - 22:14:58 GMT

I have a horizontal menu below is my code. For some reason occassionaly the menu tends to expand and fill 100% of the browser horizontally. Its not on a certain page it happens randomly. Just wanted to know if there was a bug and how to fix it. I've been serarching and reading all this posts but none help,

Thanks,

<script>
with(milonic=new menuname("Main Menu")){
style=menuStyle;
alwaysvisible=1;
orientation="horizontal";
position="relative";
itemwidth="100%";
align="center";
aI("text=Services;url=/Services/skillednursing.asp;showmenu=services;");
aI("text=Healthcare Resources;url=/HealthcareResources/aboutCare.asp;showmenu=healthcareresources;");
aI("text=Be an Employee;url=/BeAnEmployee/whyus.asp;showmenu=employee;");
aI("text=Quality;url=/Quality/review.asp;showmenu=quality;");
aI("text=Compliance;url=/Compliance/program.asp;showmenu=compliance;");
aI("text=About Us;url=/Investor/companyProfile.asp;showmenu=aboutus;");
}
drawMenus();
</script>


Poster: vikenk
Dated: Tuesday October 31 2006 - 22:39:12 GMT

Hello Mario,

I think we're going to need more information to solve this one. It *may* have something to do with the itemwidth=100%, but we really need to see more. Can you give us a URL to see? The problem could be in the CSS file or in the HTML coding as well.

Can you post some more info?


Poster: mario
Dated: Wednesday November 1 2006 - 16:59:36 GMT

Here is the link where the menu is being used

http://70.182.177.21/Services/servicesSample_Main.asp


Poster: mario
Dated: Thursday November 2 2006 - 21:18:34 GMT

Below is the rest of my code



fixMozillaZIndex=false; //Fixes Z-Index problem with Mozilla browsers but causes odd scrolling problem, toggle to see if it helps
_menuCloseDelay=500;
_menuOpenDelay=150;
_subOffsetTop=0;
_subOffsetLeft=-2;


with(menuStyle=new mm_style()){
bordercolor="#3F3F3F";
borderstyle="solid";
//borderwidth=1;
fontfamily="Arial, Verdana, Tahoma ";
fontsize="11px";
fontstyle="normal";
fontweight="bold";
headerbgcolor="#E6E7E7";
headercolor="#666666";
offbgcolor="#E1E1C9";
offcolor="#000000";
onbgcolor="#F9FAF4";
oncolor="#666666";
//outfilter="randomdissolve(duration=.1)";
//overfilter="Fade(duration=.2);Alpha(opacity=95);Shadow(color=#777777', Direction=135, Strength=0)";
padding=3;
//pagebgcolor="#82B6D7";
//pagecolor="black";
separatorcolor="#FFFFFF";
separatorsize=1;
//subimage="arrow.gif";
//subimagepadding=2;
}

with(milonic=new menuname("services")){
style=menuStyle;
//itemwidth="200";
aI("text=Administrative and Consultative Services;url=/Services/administrative_ConsultativeServices.asp;");
aI("text=Services provided by Affiliates;url=/Services/servicesAffiliates.asp;");
aI("text=Testimonials;url=/Quality/testimonials.asp;");
}

with(milonic=new menuname("healthcareResources")){
style=menuStyle;
//itemwidth="200";
aI("text=Understanding Adult Healthcare;url=/HealthcareResources/adulthealthcare.asp;");
aI("text=Understanding Dementia and Alzheimer's Disease;url=/HealthcareResources/disease.asp;");
aI("text=Understanding Skin Problems;url=/HealthcareResources/skin.asp;");
aI("text=How to Select a Nursing Facility;url=/HealthcareResources/howtoselect.asp;");
aI("text=Disease Management;url=/HealthcareResources/diseaseManagement.asp;");
aI("text=Senior Health Tips;url=/HealthcareResources/healthtips.asp;");
aI("text=About Medicare;url=/HealthcareResources/aboutMedicare.asp;");
aI("text=About Medicaid;url=/HealthcareResources/aboutMedicaid.asp;");
aI("text=Other Links;url=/HealthcareResources/links.asp;");
}

with(milonic=new menuname("employee")){
style=menuStyle;
//itemwidth="200";
aI("text=Philosophy on Employees;url=/BeAnEmployee/philosophy.asp;");
aI("text=Why Us?;url=/BeAnEmployee/whyus.asp;");
aI("text=Benefits;url=/BeAnEmployee/benefits.asp;");
aI("text=Affiliate Employee;url=/BeAnEmployee/affiliateEmployee.asp;");

}

with(milonic=new menuname("quality")){
style=menuStyle;
itemwidth="115";
aI("text=Testimonials;url=/Quality/testimonials.asp;");
}

with(milonic=new menuname("compliance")){
style=menuStyle;
itemwidth="140";
aI("text=SHC Compliance;url=/Compliance/shcCompliance.asp;");
aI("text=Affiliate Compliance;url=/Compliance/affiliateCompliance.asp;");
}

with(milonic=new menuname("aboutus")){
style=menuStyle;
//itemwidth="200";
aI("text=Management;url=/AboutUs/management.asp;");
aI("text=News;url=/AboutUs/news.asp;");
}
drawMenus();


Poster: John
Dated: Thursday November 2 2006 - 21:46:49 GMT

Try the v5.762 pre-release version of the code.


Poster: mario
Dated: Friday November 3 2006 - 18:49:51 GMT

I did update to the prerelease version but still encoutered the same bugs...