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

Menus width or align ?


Poster: LToPiQ
Dated: Monday November 17 2003 - 14:01:16 GMT

Is there anyway to upate menu width (example : menuwidth=100%) and submenus width ?

AND/OR

update align menu ? (like menualign=center)


Poster: bobwill
Dated: Monday November 17 2003 - 14:26:06 GMT

I am not sure what you mean by "update". The two variables that you are talking are available. Have you gone to the Milonic home page and printed out the "Reference Guides"? If not I would suggest that you do so. Lots of variables to deal with.


Poster: LToPiQ
Dated: Tuesday November 18 2003 - 9:55:45 GMT

You're speaking about these pages ?

http://www.milonic.com/styleproperties.php
http://www.milonic.com/menuproperties.php
http://www.milonic.com/itemproperties.php

I didn't found any information to understand where integrate this fields into the milonic menu v5.


Poster: bobwill
Dated: Tuesday November 18 2003 - 12:44:41 GMT

Yes, I was speaking of those files. The only advice that I think of to give you about how things work, is for you to download several examples and look at the code in the "menu_data.js" file and see how the variables are used. Also, make sure that you read all the "txt" files that come with the download.
When I started building menus, I took one of the examples and kept modifying it to meet my personal requirements. There is not sure and safe way to get from the beginning to the end.

Sorry that's the best advice I can give. Maybe some others have better advice for you.


Poster: John
Dated: Tuesday November 18 2003 - 14:07:25 GMT

LToPiQ wrote:
I didn't found any information to understand where integrate this fields into the milonic menu v5.

Maybe I'm missing something here, but the titles of the pages clearly indicate where in the system each of the parameters belong.


Poster: LToPiQ
Dated: Tuesday November 18 2003 - 14:11:05 GMT

Yes, but. I successfully find "menualign="
But "align=center"
to put menu at the center of the page doesn't work here.


Poster: John
Dated: Tuesday November 18 2003 - 14:18:42 GMT

LToPiQ wrote:
Yes, but. I successfully find "menualign="
But "align=center"
to put menu at the center of the page doesn't work here.

'align=center' does not position the menu itself. From the Menu Properties Reference Guide...
Quote:
align can be declared in either the style, menu or menu item and is used to position the text inside menuitems

May I respectfully suggest you go through those 3 documents to get a better understanding of what they require.


Poster: LToPiQ
Dated: Monday February 2 2004 - 16:51:30 GMT

I'm sorry to disturb you for a probably stupid question, but i'm still not able to center my menu.

He're the begin of my menu_data file :

Code:
_menuCloseDelay=250           // The time delay for menus to remain visible on mouse out, 250 default
_menuOpenDelay=0            // The time delay before menus open on mouse over
_followSpeed=500                // Follow scrolling speed
_followRate=500                // Follow scrolling Rate
_subOffsetTop=3              // Sub menu top offset
_subOffsetLeft=5            // Sub menu left offset
_scrollAmount=3               // Only needed for Netscape 4.x
_scrollDelay=20               // Only needed for Netcsape 4.x

with(menuStyle=new mm_style()){
valign="center";
align="left";
onbgcolor="#FFFFFF";
oncolor="#FFFFFF";
offbgcolor="#FFFFFF"; // Background cells color
offcolor="#FFFFFF"; // Font color
bordercolor="#FFFFFF";
borderstyle="solid";
borderwidth=1;
separatorcolor="#FFFFFF";
separatorsize="1";
padding=5;
fontsize="8pt";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#FFFFFF"; // Background selected item
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="http://www.test.com/images/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.1);Alpha(opacity=100);Shadow(color='#777777', Direction=135, Strength=3)";
outfilter="randomdissolve(duration=0.0)";
}

with(milonic=new menuname("Main Menu")){
menuwidth="100%";
menualign="center";
screenposition="center";
style=menuStyle;
top=5;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.test.com/home.asp;status=Back To Home Page;");
aI("text=Home;url=http://www.test.com/home.asp;status=Back To Home Page;");
aI("text=Games;showmenu=Games;");
aI("text=Affiliate;showmenu=Affiliate;");
aI("text=Marketing;showmenu=Marketing;");
aI("text=Support;showmenu=Support;");
aI("text=Financial;showmenu=Financial;");
aI("text=Administration;showmenu=Administration;");
aI("text=Search cus.;url=http://www.test.com/customers/search.asp;status=Search a customer;");
}

Some of the code you have you do not need


Poster: rudy
Dated: Monday February 2 2004 - 17:42:00 GMT

Some of the menu code you do no (or should not) need and may be causing the problem...

Code:
with(milonic=new menuname("Main Menu")){
menuwidth="100%";
menualign="center";
screenposition="center";
style=menuStyle;
top=5;
left=10;
alwaysvisible=1;
orientation="horizontal";
aI("text=Home;url=http://www.test.com/home.asp;status=Back To Home Page;");
aI("text=Home;url=http://www.test.com/home.asp;status=Back To Home Page;");
aI("text=Games;showmenu=Games;");
aI("text=Affiliate;showmenu=Affiliate;");
aI("text=Marketing;showmenu=Marketing;");
aI("text=Support;showmenu=Support;");
aI("text=Financial;showmenu=Financial;");
aI("text=Administration;showmenu=Administration;");
aI("text=Search cus.;url=http://www.test.com/customers/search.asp;status=Search a customer;");
}


with(milonic=new menuname("Main Menu")){
menuwidth="100%"; <--- Remove this
menualign="center"; <--- Remove this
screenposition="center";
style=menuStyle;
top=5; <---- Remove this
left=10; <---- Remove this
alwaysvisible=1;
orientation="horizontal";

Or you can just "comment" these out by placing double forward slashes // in front of these lines. Give this a try and see if it helps :D


Poster: LToPiQ
Dated: Tuesday February 3 2004 - 8:15:29 GMT

That's working fine, thank you.