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

resize window and the menu is not in the center


Poster: flow
Dated: Wednesday June 20 2007 - 11:29:57 BST

Hi, i have got some problem with a milonic DHTML menu. Look at http://www.tpline.fr with IE and Firefox if you resize the windows, the menu (which is center) move and there is an overflow. How could i fix this ?

Code:
_scrollAmount=5      // Used for Netscape 4 scrolling
_scrollDelay=10        // Used for Netscape 4 scrolling
_menuCloseDelay=500  // The delay for menus to remain visible on mouse off
_menuOpenDelay=150   // The delay for opening menus on mouse over
_subOffsetTop=0;     // Sub menu offset Top position
_subOffsetLeft=0;  // Sub menu offset Left position
fixMozillaZIndex=true;
buildAfterLoad=true;

// Style Niveau 0 //////////////////////////////////////////////////////////////////////
with(menuStyle=new mm_style()){
onbgcolor = "#C9E4EA";
oncolor = "#2F80A0";
offbgcolor = "transparent";
offcolor = "#2F80A0";
visitedcolor = "#2F80A0";
bordercolor = "#999999";
borderstyle = "solid";
separatorcolor = "#D9D9D9";
separatorsize = 1;
separatorpadding=4
padding = 5
borderwidth = 0
onborder = "0px solid #005A53";
overfilter = "Fade(duration=0.0);"
outfilter = "Fade(duration=0.0)"
fontsize = "8pt";
fontstyle = "normal";
fontfamily = "verdana, arial, tahoma";
fontweight = "bold";
subimage="/images/nav/fleche_menu.gif";
position='relative';

}


// Style Niveau 1  //////////////////////////////////////////////////////////////////////
with(SubmenuStyle=new mm_style()){
onbgcolor = "#C9E4EA";
oncolor = "#2F80A0";
offbgcolor = "#F9F9F9";
offcolor = "#2F80A0";
visitedcolor = "#2F80A0";
bordercolor = "#CFCFCF";
borderstyle = "solid";
separatorcolor = "#CFCFCF";
separatorsize = 1;
separatorpadding=0;
padding = 5;
borderwidth = 1;
onborder = "0px solid #005A53";
overfilter = "Fade(duration=0.0)";
outfilter = "Fade(duration=0.0)";
fontsize = "8pt";
fontstyle = "normal";
fontfamily = "verdana, arial, tahoma";
subimage="/images/nav/fleche_menu.gif";
}



// Niveau 0 ///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=125;
left=0;
alwaysvisible=1; 
orientation="horizontal";
screenposition="center";

aI("text=Les systèmes;url=/fr/systemes.php;status=Les systèmes;showmenu=systemes;");
aI("text=Les TP;url=/fr/tp.php;status=Les TP;showmenu=tp;");
aI("text=Les niveaux;url=/fr/niveaux.php;status=Les niveaux;showmenu=niveaux;");
aI("text=Cours et applications;url=/fr/cours_application.php;status=Cours et applications;showmenu=cours;");
aI("text=Entreprises partenaires;url=/fr/partenaires.php;status=Entreprises partenaires;showmenu=partenaires;");
aI("text=Les métiers;url=#;status=Les métiers;showmenu=metiers;");
}

// Niveau 1 ///////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////

with(milonic=new menuname("systemes")){
style=SubmenuStyle;
top="offset=5"
left="offset=0"
aI("text=Influence du Mistral sur le TGV Méditerrannée;url=/fr/tgvMistral/index.php;status=;");
<!--aI("text=Système numéro 2;url=#;status=;"); !>
}

with(milonic=new menuname("tp")){
style=SubmenuStyle;
top="offset=5"
left="offset=0"
aI("text=TP : Influence du mistral sur la conduite du TGV;url=/fr/tgvMistral/fr_tp1/index.php;status=;target=blank;");
<!--aI("text=TP numéro 2;url=#;status=;");--!>

}

with(milonic=new menuname("niveaux")){
style=SubmenuStyle;
top="offset=5"
left="offset=0"
aI("text=Collège;url=/fr/college.php;status=;");
aI("text=Lycée et lycée pro;url=/fr/lycee.php;status=;");
aI("text=Post Bac;url=/fr/post_bac.php;status=;");
}

with(milonic=new menuname("metiers")){
style=SubmenuStyle;
top="offset=5";
left="offset=-25";
aI("text=TGV Méditérannée;url=/fr/tgvMistral/metiers/metier_1.php;status=;showmenu=");

}


drawMenus();


sorry for my bad english! ;)


Poster: Ruth
Dated: Wednesday June 20 2007 - 14:12:01 BST

Hi,

I'm sorry but we cannot help you. Your menu version is 3 years old and it is not licensed. You will need to upgrade to the newest version since we have no idea what the programming was in that old version. You are also using parameters in that menu that were not programmed into the menu in that version, like buildAfterLoad and fixMozillaZIndex neither of which are part of the version you are using

Ruth