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: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:33

Submenu Positioning


Poster: Thrina Brezenski
Dated: Tuesday April 1 2003 - 21:16:00 BST

How do I change the submenu position to be directly below the menu? Currently there is a gap between them that I want to get rid of.

No the feeling. :)


Poster: Oraya
Dated: Tuesday April 1 2003 - 22:35:17 BST

Lol just posted a message on this very topic myself. Are you just using the two frame, and not the side frame and menu? If so we're on the same merry go round. :D

Submenu Positioning


Poster: Thrina Brezenski
Dated: Tuesday April 1 2003 - 22:42:00 BST

I figured it out...

You have to change this code in each of the submenus


addmenu(menu=["timeOff",
"offset=-7",,175,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Time Off Leaves","show-menu=timeOffLinks",,,1

Hope this works for you.

Re: Submenu Positioning


Poster: Oraya
Dated: Tuesday April 1 2003 - 22:58:55 BST

Thrina Brezenski wrote:
I figured it out...

You have to change this code in each of the submenus


addmenu(menu=["timeOff",
"offset=-7",,175,1,"",style1,,"left",effect,,,,,,,,,,,,
,"Time Off Leaves","show-menu=timeOffLinks",,,1

Hope this works for you.


No for some reason this hasn't helped me! :cry:

Thanks anyway.


Poster: Thrina Brezenski
Dated: Tuesday April 1 2003 - 23:23:29 BST

I also went out and downloaded the zip files again and replaced my mmenu.js file. Then I added the offset code and it worked.


Poster: Oraya
Dated: Tuesday April 1 2003 - 23:32:21 BST

Thrina Brezenski wrote:
I also went out and downloaded the zip files again and replaced my mmenu.js file. Then I added the offset code and it worked.



I noticed from your earlier post you are using the horizontal drop down, I'm using the frames menu. Sadly in the download version they have a side frame with menu and top frame menu, both open into the body frame, using a separate body.js file. As I didn't want the side frame and menu I altered it so I just had the top frame menu. Trouble is that an allowance was written into the file of the sub menu in the main frame window. So they don't align unless I put in the side frame back in. It's driving me mad. lol I've tried everything. Oh well, if I can't get it to work soon, I'm just going to have to go back to my old java menu. :cry:

Hope that made sense! lol


Poster: kevin3442
Dated: Saturday April 5 2003 - 5:45:40 BST

Hi Oraya,

I'm not sure if the "gap" you speak of is vertical (the top of the submenu doesn't touch the bottom of the main menu) or horizontal (the left side of the submenu doesn't align with the left side of the calling main menu item.

In either case, you should be able to change the following two values to help the menus in the two frames line up:

Frames_Top_Offset=xxx
Frames_Left_Offset=xxx

These values should be set at the top of both the frames_header_array.js and the frames_body_array.js file (although my own experience seems to tell me that it's the values in the header file that have the effect). If you have a horizontal main menu in a navigation frame, and vertical submenus in the "body" frame, then you should do a few things:

1. Position your main menu so that the bottom of the menu abuts the border between the two frames.

2. Make the border between the frames invisible

3. Set Frames_Top_Offset to 0 and Frames_Left_Offset to a positive value large enough to bump the submenus to the left far enough to align with their corresponding main menu selections. I'd start with a value of 100.

Hope that helps,

Kevin


Poster: Oraya
Dated: Saturday April 5 2003 - 19:24:27 BST

kevin3442 wrote:
Hi Oraya,

I'm not sure if the "gap" you speak of is vertical (the top of the submenu doesn't touch the bottom of the main menu) or horizontal (the left side of the submenu doesn't align with the left side of the calling main menu item.

In either case, you should be able to change the following two values to help the menus in the two frames line up:

Frames_Top_Offset=xxx
Frames_Left_Offset=xxx

These values should be set at the top of both the frames_header_array.js and the frames_body_array.js file (although my own experience seems to tell me that it's the values in the header file that have the effect). If you have a horizontal main menu in a navigation frame, and vertical submenus in the "body" frame, then you should do a few things:

1. Position your main menu so that the bottom of the menu abuts the border between the two frames.

2. Make the border between the frames invisible

3. Set Frames_Top_Offset to 0 and Frames_Left_Offset to a positive value large enough to bump the submenus to the left far enough to align with their corresponding main menu selections. I'd start with a value of 100.

Hope that helps,

Kevin


Hi Kevin,

Thank you for your reply, I have now sorted the problem. :roll: I did alter these values but with no affect. I downloaded the file again and hay presto all of a sudden it worked. I think there may have been a download glitch on the first one, though it didn't report any errors! Still one never knows with the net. lol... things just aren't always what they seem hehe... thanks again for your post.

Have a good weekend,
Oraya.