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:50
menu moves automatically
Poster: Darkangel
Dated: Tuesday March 15 2005 - 22:13:18 GMT
HI to all the team of milonic...
I'm contacting you because i encounter a strange problem..
when i click on a button, the menu appears but when i start for example to move on one of the option
the menu automatically goes up of somethning like 2 lines..
not a lot but it still move alone...
as an information i've got the following code for the menu..
Code:
with(milonic=new menuname("Main Menu")){
alwaysvisible=0;
screenposition="bottom,left"; top="offset=-30";
orientation="vertical";
style=submenuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.milonic.dev/;");
aI("showmenu=Milonic;text=Milonic;");
aI("image=clxp_hand.gif;showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=My Milonic;text=My Milonic;");
aI('status=Fermer Session;text= start ;url=start.php;');
}
alwaysvisible=0;
screenposition="bottom,left"; top="offset=-30";
orientation="vertical";
style=submenuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.milonic.dev/;");
aI("showmenu=Milonic;text=Milonic;");
aI("image=clxp_hand.gif;showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=My Milonic;text=My Milonic;");
aI('status=Fermer Session;text= start ;url=start.php;');
}
thanks in advance for your help
Poster: Ruth
Dated: Wednesday March 16 2005 - 0:22:46 GMT
Hi,
I know you're working on this site, but we really need to see a test page with the menu to see what's happening. I'm not even sure I understand what it is you're trying to describe. Is there no way for you to put up a test page that shows the problem?
Ruth
Poster: kevin3442
Dated: Wednesday March 16 2005 - 0:30:19 GMT
Hi Darkangel,
From your earlier thread, I thought your goal was to have a "Lancer" button at the bottom/left of the page, and when you pointed at it, then it would open the "Main Menu" above it (Sort of like the Windows "Start" button). I'm assuming that is the case, since your "Main Menu" is set to alwaysvisible=0;. You do not normally specify a position for menus that are essentially submenus -- i.e., to be opened from another menu item. Such menus are opened using the showmenu property, and they open in a position relative to the "parent" menu item the opened them. With that in mind, your "Main Menu" might be more effective like this:
Code:
with(milonic=new menuname("Main Menu")){
style=submenuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.milonic.dev/;");
aI("showmenu=Milonic;text=Milonic;");
aI("image=clxp_hand.gif;showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=My Milonic;text=My Milonic;");
aI('status=Fermer Session;text= start ;url=start.php;');
}
style=submenuStyle;
aI("status=Back To Home Page;text=Home;url=http://www.milonic.dev/;");
aI("showmenu=Milonic;text=Milonic;");
aI("image=clxp_hand.gif;showmenu=Partners;text=Partners;");
aI("showmenu=Links;text=Links;");
aI("showmenu=My Milonic;text=My Milonic;");
aI('status=Fermer Session;text= start ;url=start.php;');
}
Notice that there is no screenposition specified (which I think was the cause of the movement you noticed). Instead, the menu will open relative to the position of the item that caused it to open. Also, there is no orientation propery specified, because "vertical" is the default. There is also no alwaysvisible specified, because 0 is the default. It doesn't hurt to specify orientation="vertical" and alwaysvisible=0, but it is not necessary.
Hope that helps,
Kevin