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:01
Position of the menu not working...
Poster: Bâshrat the Sneaky
Dated: Tuesday December 21 2004 - 18:32:56 GMT
Hi!
I've fully configured my menu, (not yet the content of it), but I can't get it centered :'(
You can find the test page here: http://www.btsunattended.net/tutorials/19.htm
This is my menu_data.js:
Code:
_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=2 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
_scrollAmount=3 // Only needed for Netscape 4.x
_scrollDelay=20 // Only needed for Netcsape 4.x
_followSpeed=5
_followRate=50
with(menuStyle=new mm_style()){
onbgcolor="#7AA2F1";
oncolor="#FFFFFF";
offbgcolor="#EDF1F8";
offcolor="#515151";
bordercolor="#C4C4C4";
borderstyle="solid";
borderwidth=1;
separatorcolor="#C4C4C4";
separatorsize="1";
separatoralign="center";
separatorwidth="66%";
padding=5;
fontsize="100%";
fontstyle="normal";
fontfamily="Verdana, Helvetica, sans-serif";
subimage="/tutorials/menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.0);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
onborder="1px solid #316AC5";
screenposition="center";
}
_menuOpenDelay=150 // The time delay before menus open on mouse over
_subOffsetTop=2 // Sub menu top offset
_subOffsetLeft=-10 // Sub menu left offset
_scrollAmount=3 // Only needed for Netscape 4.x
_scrollDelay=20 // Only needed for Netcsape 4.x
_followSpeed=5
_followRate=50
with(menuStyle=new mm_style()){
onbgcolor="#7AA2F1";
oncolor="#FFFFFF";
offbgcolor="#EDF1F8";
offcolor="#515151";
bordercolor="#C4C4C4";
borderstyle="solid";
borderwidth=1;
separatorcolor="#C4C4C4";
separatorsize="1";
separatoralign="center";
separatorwidth="66%";
padding=5;
fontsize="100%";
fontstyle="normal";
fontfamily="Verdana, Helvetica, sans-serif";
subimage="/tutorials/menu/arrow.gif";
subimagepadding="2";
overfilter="Fade(duration=0.0);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
onborder="1px solid #316AC5";
screenposition="center";
}
Note that the menu is NOT in a table!
Poster: rudy
Dated: Tuesday December 21 2004 - 18:50:32 GMT
Try placing the javascript code right after the <body> tag or in the <head> portion of your opening page as indicated in the "install.txt" file, as shown below:
3. Inform your web pages that you want the menu to appear when they are loaded.
To do this, you need to add the following JavaScript tags to your HTML page:
<script type="text/javascript" src="milonic_src.js"></script>
<script type="text/javascript">
<!--
if(ns4)_d.write("<script language=JavaScript src=mmenuns4.js><\/script>");
else _d.write("<script language=JavaScript src=mmenudom.js><\/script>");
-->
</script>
<script type="text/javascript" src="menu_data.js"></script>
The position of the above is not particularly important, but it's advisable to
place these tags just after the <BODY> tag or in the <HEAD> of your document. This help minimize the risk of a conflict with other objects. The order in which
the tags appear IS important, and must be as shown above.
Poster: kevin3442
Dated: Wednesday December 22 2004 - 1:01:00 GMT
Hi Bâshrat the Sneaky,
You have screenposition="center"; in your menuStyle definition, but screenposition is a menu property, not a style property. That line should go in the menu definition. E.g.,
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
alwaysvisible=1;
orientation="horizontal";
screenposition="center";
aI(...
}
style=menuStyle;
top=10;
alwaysvisible=1;
orientation="horizontal";
screenposition="center";
aI(...
}
Hope that helps,
Kevin
Poster: Bâshrat the Sneaky
Dated: Saturday January 1 2005 - 17:17:13 GMT
kevin3442 wrote:
Hi Bâshrat the Sneaky,
You have screenposition="center"; in your menuStyle definition, but screenposition is a menu property, not a style property. That line should go in the menu definition. E.g.,
Hope that helps,
Kevin
You have screenposition="center"; in your menuStyle definition, but screenposition is a menu property, not a style property. That line should go in the menu definition. E.g.,
Code:
with(milonic=new menuname("Main Menu")){
style=menuStyle;
top=10;
alwaysvisible=1;
orientation="horizontal";
screenposition="center";
aI(...
}
style=menuStyle;
top=10;
alwaysvisible=1;
orientation="horizontal";
screenposition="center";
aI(...
}
Hope that helps,
Kevin
I'm afraid I forgot to say thanks
THANKS!
And a happy 2005!