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: Hergio
Dated: Thursday August 21 2003 - 2:04:23 BST
Gotta look and read alittle closer
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.
_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
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
(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!
Just another tip, due to a problem with your styles. There have been problems due to styles causing menus to mysteriously grow
Best of luck!
Oh and John, you kinda do work for milonic now, in a round-about, long-distance, indirect way, hehe.
Industrial Strength JavaScript and DHTML Menus
About Us
Testimonials
Contact Us
Our Distinguished Clients
Investing in Non-Profits
Where Are We
Privacy Policy
Software Licensing Agreement
DHTML JavaScript Menu
Product Information
Page Integration
Quick Reference Guides
Embedding Into a Table or DIV
Purchase
