I'm working on a site with two Milonic menus on each page (a 'top' horizontal menu, and a 'left' vertical menu).
Although the menus are both working as such, I'm having different problems with both. Firstly, with the top menu I would like each item to have the same width (122 pixels), regardless of the text length or if the item has a sub-menu. I've set the 'itemwidth' property to 122, but only those items with a sub-menu image appear at the right width (the others are too long). I should probably say that I've got a left padding of 10. If I get rid of this padding, then the problem is reversed (the items with sub menus appear too short). Therefore, it seems as if the itemwidth is not inclusive of the padding on items with a sub-menu image, but the opposite for those without.
Strangely, however, in Mozilla Firebird the padding setting doesn't seem to work at all, but all the items are the desired width. Should this be the case (i.e., that padding works in different ways depending on whether an item as a sub-menu?).
As for problem two, with the left hand menu: I've set the height for each item to be quite small (12 pixels). This works fine... but not for any sub menu items, which always appear much bigger. I've set the padding, border widths, etc, to zero, but no luck.
Below is the settings from the menuarray files (I've got 2: menuarray_top and _left). If any of you could guide me on these matters I'd be very grateful!
From the top menu:
Code: Select all
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=0 // Sub menu top offset
_subOffsetLeft=-3 // Sub menu left offset
_scrollAmount=3 // Only needed for Netscape 4.x
_scrollDelay=20 // Only needed for Netcsape 4.x
with(mainStyle=new mm_style()){
onbgcolor = "#666699";
oncolor = "#FF9900";
offbgcolor = "#666699";
offcolor = "#FFFFFF";
bordercolor = "#000066";
borderstyle = "solid";
borderwidth = 1;
separatorcolor = "#000066";
separatorsize = 2;
padding = "4px 1px 4px 10px"; // top,right,bottom,left
fontsize = "7pt";
fontstyle = "normal";
fontweight = "normal";
fontfamily = "Tahoma, Arial, Helvetica";
high3dcolor = null; // Not sure if this will be included in final release
low3dcolor = null; // Not sure if this will be included in final release
pagecolor = "";
pagebgcolor = "";
topbarimage = "";
subimage = "/images/chev_bottom.gif";
onsubimage = "/images/chev_bottom.gif";
subimageposition = "right;middle";
align = "left";
}
with(subStyle=new mm_style()){
onbgcolor = "#CCCCCC";
oncolor = "#666699";
offbgcolor = "#666699";
offcolor = "#FFFFFF";
bordercolor = "#000066";
borderstyle = "solid";
borderwidth = 1;
separatorcolor = "#000066";
separatorsize = 1;
padding = "4px 4px 4px 10px"; // top,right,bottom,left
fontsize = "7pt";
fontstyle = "normal";
fontweight = "normal";
fontfamily = "Tahoma, Arial, Helvetica";
pagecolor = "";
pagebgcolor = "";
topbarimage = "";
topbarimageloc = "left;middle";
subimage = "/images/chev.gif";
onsubimage = "/images/chev_grey.gif";
align = "left";
//ondecoration = "underline";
//onbold = true;
//onitalic = true;
}
with(milonic=new menuname("mainmenu2")){_c=1
//screenposition="top;left"
style = mainStyle;
alwaysvisible = 1;
orientation="horizontal";
//itemheight=18;
//left="offset=130";
//top="offset=45";
left=130;
top=45;
menu items would follow...
Code: Select all
_scrollAmount=3; // Used for Netscape 4 scrolling
_scrollDelay=20; // 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
with(mainStyle=new mm_style()){
onbgcolor = "#666699";
oncolor = "#FF9900";
offbgcolor = "#666699";
offcolor = "#FFFFFF";
bordercolor = "#000066";
borderstyle = "solid";
borderwidth = 0;
separatorcolor = "#000066";
separatorsize = 2;
padding = "2px 0px 3px 6px"; // top,right,bottom,left
fontsize = "7pt";
fontstyle = "normal";
fontweight = "normal";
fontfamily = "Tahoma, Arial, Helvetica";
high3dcolor = null; // Not sure if this will be included in final release
low3dcolor = null; // Not sure if this will be included in final release
pagecolor = "";
pagebgcolor = "";
topbarimage = "";
subimage = "/images/chev.gif";
onsubimage = "/images/chev.gif";
subimageposition = "right;middle";
align = "left";
}
with(subStyle=new mm_style()){
onbgcolor = "#CCCCCC";
oncolor = "#666699";
offbgcolor = "#666699";
offcolor = "#FFFFFF";
bordercolor = "#000066";
borderstyle = "solid";
borderwidth = 1;
separatorcolor = "#000066";
separatorsize = 1;
padding = "0px 6px 0px 6px"; // top,right,bottom,left
fontsize = "7pt";
fontstyle = "normal";
fontweight = "normal";
fontfamily = "Tahoma, Arial, Helvetica";
pagecolor = "";
pagebgcolor = "";
topbarimage = "";
topbarimageloc = "left;middle";
subimage = "/images/chev.gif";
onsubimage = "/images/chev_grey.gif";
align = "left";
}
with(milonic=new menuname("mainmenu2")){_c=1
borderwidth = 0;
screenposition="top;left"
style = mainStyle;
alwaysvisible = 1;
orientation="vertical";
itemheight=12;
left="offset=2";
top="offset=103";
menu items would follow...

- Dux -