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

set position of the menu


Poster: agerszt
Dated: Wednesday August 20 2003 - 18:57:02 BST

hi

the menu of the sample download always is left (horiz) and centered (vertically). i couldn't find a way to align it differently. i searched the
faq, but couldn't find any pointers.

what is the proper way to put it there, where you want it? :)

thanks,
arie


Poster: Hergio
Dated: Wednesday August 20 2003 - 19:38:10 BST

Take a look at http://www.milonic.com under DHTML Menu > you will see
-Style Properties Quick Reference http://www.milonic.com/styleproperties.php
-Menu Properties Quick Reference http://www.milonic.com/menuproperties.php
-Menu Item Properties Quick Reference http://www.milonic.com/itemproperties.php
Check to see if you can figure out how to do what you want using these listed properties, and also look in the samples menu, you can pretty much see what properties are set for each of the menu's that are shown. Once you look at these and STILL can't see how to do it, post back.

again me :)


Poster: agerszt
Dated: Wednesday August 20 2003 - 21:39:26 BST

i've read the document and tried

with(menuStyle=new mm_style()){
screenposition="top;left";
onbgcolor="#4F8EB6";
oncolor="#ffffff";
offbgcolor="#DCE9F0";
offcolor="#515151";
bordercolor="#296488";
borderstyle="solid";
borderwidth=1;
separatorcolor="#2D729D";
separatorsize="1";
padding=5;
fontsize="75%";
fontstyle="normal";
fontfamily="Verdana, Tahoma, Arial";
pagecolor="black";
pagebgcolor="#82B6D7";
headercolor="#000000";
headerbgcolor="#ffffff";
subimage="";
subimagepadding="2";
overfilter="Fade(duration=0.2);Alpha(opacity=90);Shadow(color='#777777', Direction=135, Strength=5)";
outfilter="randomdissolve(duration=0.3)";
}

--> the sample file with the added screenposition

gives that result: http://www.irdium.ch/menus/index.html

the menue is still left, middle.

Thanks for help,
Arie


Poster: John
Dated: Thursday August 21 2003 - 0:09:49 BST

I get a 404 trying to go to that link.


Poster: Hergio
Dated: Thursday August 21 2003 - 2:04:23 BST

Gotta look and read alittle closer 8O ...there is no screenposition property that is available for a style. It is a menu property. Try putting it in there and see if that works. Good luck. ;)

3rd try


Poster: agerszt
Dated: Thursday August 21 2003 - 6:40:57 BST

ok. i've added it that way (in menu_data.js)

_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=45 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=10 // 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
screenposition=top
_screenposition=top

with and without underscore: no luck.

the link is working fine btw: http://www.irdium.ch/menus/index.html
(be sure it is irdium not irIdium :)

it should be so simple to put that nice nifty thing there where you want it. but it seems no luck to me today.

thanks for help
arie

finally got it :)


Poster: agerszt
Dated: Thursday August 21 2003 - 7:41:43 BST

//top=220;
//left=10;

needs to be removed...

follow up


Poster: agerszt
Dated: Thursday August 21 2003 - 9:46:41 BST

if you put two different menus on the same page (which works) and i align one to the left and the other to the right, the menus get streched quite unnicely. is that inevitable?

arie

Re: 3rd try


Poster: John
Dated: Thursday August 21 2003 - 14:53:32 BST

agerszt wrote:
ok. i've added it that way (in menu_data.js)

_menuCloseDelay=500 // The time delay for menus to remain visible on mouse out
_menuOpenDelay=45 // The time delay before menus open on mouse over
_followSpeed=5 // Follow scrolling speed
_followRate=40 // Follow scrolling Rate
_subOffsetTop=10 // 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
screenposition=top
_screenposition=top

with and without underscore: no luck.

Because it's still in the wrong place :!: Apparently Dave's advice ("read") didn't kick in. Just because you put something in anyplace in menu_data does not make it a menu property.

Look more closely at your data file (can't give you specifics because I can't get at it). You will see something like...
Code:
with(milonic=new menuname("XPMain")){_c=1 etc.

XPMain will be whatever you have named your menu. That is a menu definition, and menu properties (e.g., screenposition) go in there.
agerszt wrote:
the link is working fine btw: http://www.irdium.ch/menus/index.html
(be sure it is irdium not irIdium :)

No, it's not. I get...
Quote:
Cannot find server or DNS Error

As far as spelling is concerned, we just click on what you type in (it's a hot link), so we're not making any typing errors.


Poster: Hergio
Dated: Thursday August 21 2003 - 15:39:28 BST

Ok, the link worked for me now (dont know if you changed something) but the menus loaded up correctly. Looking at your code, you wanted one to be in the upper left and the other in the upper right and thats where they lie. Nice job...those quick refs are going to become your best friend the more you work with the menu! ;) Thanks John.

Just another tip, due to a problem with your styles. There have been problems due to styles causing menus to mysteriously grow :? as you resize a page, and I see it on your upper right menu viewing in my IE6 browser. Haven't played with it enough to nail it down to a specific thing, but here are a couple things to change to keep it from happening to your menu. You have one style defined for all your menus. This style defines a overfilter that includes a FADE. A fade only works for menus that actually have transitions (open/close) and since you're top most menus are alwaysvisible, they shouldnt have fade. You should either take out fade, or copy that style, rename it, take out the fade and make your top menus us the new style (the one without the fade). This might help. Also, your shadow strength may be set too high, its at 5 right now, drop it to 4 or 3 and see if that helps.
Best of luck! ;)

Oh and John, you kinda do work for milonic now, in a round-about, long-distance, indirect way, hehe. :lol:


Poster: John
Dated: Thursday August 21 2003 - 15:49:37 BST

Hergio wrote:
Oh and John, you kinda do work for milonic now, in a round-about, long-distance, indirect way, hehe. :lol:

So do you, Dave :!: Wonder where the check is... :?