Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:19
change position of first submenu that appears?
Poster: yanto75
Dated: Sunday August 17 2003 - 10:52:46 BST
Hello everyone,
I recently placed the mainmenu in a layer/div that is positioned a bit down and to the right.
The problem I encounter is that when I move the mouse over the menulinks, the submenu group appears way up instead of right beneath the link.
Where do I change the param for this feature?
I know that I can change the "sub-submenu" by modifying menu_arrays.js here:
suboffset_top=10;
suboffset_left=10;
but again, that only changes the "second" submenu that appears, not the one immediately showing up when moving the mouse over the links...?
(If I weren't clear, I'd be glad to explain again
Can anyone help me..?
Kind regards,
Yanto
Poster: Hergio
Dated: Monday August 18 2003 - 13:02:03 BST
Why would you put it into a div/layer to position it when the menu comes with such functionality all ready installed. Just set the top and left values of your upper most menu and it will place your menu exactly, down to the pixel. The reason they are coming up up a bit is because the menu thinks its starting where the top most menu is located, but your taking it and putting it into a layer and shifting it and the sub menus dont know that. Try taking it out of the layer and using the top and left attributes of your menus.
Poster: yanto75
Dated: Monday August 18 2003 - 23:49:38 BST
Hello Hergio, and thanks for your prompt reply ! Yes, of course, you're absolutely right.. as soon as you presented the solution I realized that I had missed the obvious ! For some reason, I was convinced that I had to put the menu in a <div> to position it, hence neglecting the "innate" abilities of the menu itself.. thanks again !