menu moves automatically

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Darkangel
Advanced
Advanced
Posts: 24
Joined: Sat Mar 05, 2005 12:44 am

menu moves automatically

Post by Darkangel »

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

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;');

}
thanks in advance for your help
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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

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;');
}
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
Darkangel
Advanced
Advanced
Posts: 24
Joined: Sat Mar 05, 2005 12:44 am

Post by Darkangel »

..

i've just tried your script, the menu still appear and seems to not moves automatically, however hi need this menu to appear at left:0 and 30px from bottom..

if i precise that the menu starts to have problems again..
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I am going to request again that you put up a test page with the problem.

Ruth
Post Reply