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: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Thursday February 8 2018 - 06:02:15

Frames Based Version Sub Menu Question

Poster: benright
Dated: Thursday August 2 2007 - 16:17:06 BST

I'm using the Frames Based Version menu and I was wondering if there is a way to make the the items in sub menus pop out upwards (instead of the default downwards) if it's located close to the bottom of the page. For example I noticed if I have a sub near the bottom of the page, the first sub, ie ("sub10") pops out down, but if it then has an additional sub, ie (sub10.1), the sub10.1 will appear in full view(does not get cut off) as if to reposition itself to stay viewable in its entirety on the page, and does not get cut off. I was wondering if there is anything in the code that I could change to fix this issue of the first sub(sub10) and thus be able to place items with subs towards the bottom of pages. I hope this makes sense.

Thank you !

Poster: Ruth
Dated: Friday August 3 2007 - 8:30:31 BST

i Brian,

I'd have to see your page to see if I can figure anything out
It's kind of hard to explain, but think of it as you took an html page and put a wooden frame around say the top 40% of it. The frame only covers 40% but the page is still it's full size. The menu doesn't detect the frame per se since the main and subs are on totally different pages but when you open the next submenu from a submenu they are both on the same page and that's why it works. Hopefully I can figure something out for it.
Hope that made sense.


Poster: benright
Dated: Friday August 3 2007 - 14:59:55 BST

If you look at the Frames Based Menu off of the Milonic homepage, and you edit menu_date_side.js by changing "top=50" to top=450 (in IE7 with sccreen resolution 1024x768), it moves that menu to the bottom and you'll see exactly the problem I'm having. The first sub gets cut off but the second sub appears repositioned and viewable. Thanks again for your assistance with this.


Poster: Ruth
Dated: Saturday August 4 2007 - 5:26:37 BST


What you are trying to do is really difficult and actually may be impossible, at least for me to set it up for you since I don't know js and how to create functions. These are your options:

1. set the subOffsetTop= in the main menu, that is the side menu, to -30; or whatever number of pixels you need to shift the 1st level longest 'sub' up so it doesn't go below the frame border. Be aware this will make ALL the menus you are opening from the main shift that far up.

2. Move the main [side] menu up far enough from the bottom so that when the longest 'sub' menu opens it is not below the frame border.

3. There is a 3rd :) If you have a current professional or above license, contact Milonic and ask them if there is some function that could be created to just shift one submenu up.

The problem is that the frames menu looks as if it acts just like a regular menu, but it doesn't. I don't have the technical terms but it's more like you have one main visible menu and rather than open subs it uses a function to make visible another menu on the body page. That's why you see the second level subs shift up, they are functioning on the same page as their parent and so they detect the edge of the browser and shift so you can see them. The main menu is really only using a function to open a menu that is not really 'linked' to it. I hope that made sense. It's hard to explain because it looks as if it acts the same as any regular menu.