Menus width or align ?

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
LToPiQ
Beginner
Beginner
Posts: 9
Joined: Mon Nov 17, 2003 2:06 pm

Menus width or align ?

Post by LToPiQ »

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

AND/OR

update align menu ? (like menualign=center)
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

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.
LToPiQ
Beginner
Beginner
Posts: 9
Joined: Mon Nov 17, 2003 2:06 pm

Post by LToPiQ »

You're speaking about these pages ?

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

I didn't found any information to understand where integrate this fields into the milonic menu v5.
User avatar
bobwill
Mega Advanced
Mega Advanced
Posts: 229
Joined: Tue Oct 01, 2002 3:03 pm
Location: Kansas
Contact:

Post by bobwill »

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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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.
John
LToPiQ
Beginner
Beginner
Posts: 9
Joined: Mon Nov 17, 2003 2:06 pm

Post by LToPiQ »

Yes, but. I successfully find "menualign="
But "align=center"
to put menu at the center of the page doesn't work here.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Post by John »

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...
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.
John
LToPiQ
Beginner
Beginner
Posts: 9
Joined: Mon Nov 17, 2003 2:06 pm

Post by LToPiQ »

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: Select all

_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;");
}
User avatar
rudy
Mega User
Mega User
Posts: 161
Joined: Thu Jan 15, 2004 11:39 pm
Location: Scottsdale, Arizona
Contact:

Some of the code you have you do not need

Post by rudy »

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

Code: Select all

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
Rudy
LToPiQ
Beginner
Beginner
Posts: 9
Joined: Mon Nov 17, 2003 2:06 pm

Post by LToPiQ »

That's working fine, thank you.
Post Reply