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:35

Horizontal menu can expand up?


Poster: spraine
Dated: Monday February 3 2003 - 0:26:46 GMT

Hello--

RE http://our.homewithgod.com/spr/


Have two horizontal menus, which work well.

I'd like to position the bottom menu near the bottom, and have it expand/open UP rather than down.

Is this do-able?

OR... (if they only open down)

If I position it near the bottom, can I set "follow scrolling" so the main menu will move upward on the screen as the sub-menus appear...
so the expanded sub-menus show without the person having to move down the page?

Thanks,
Steve


Poster: kevin3442
Dated: Monday February 3 2003 - 22:04:52 GMT

Steve,

In the menu array for the menu you want at the bottom, set the 6th element (called "Screen Position" in the comments) to "bottom" and set the 11th element ("Follow Scrolling Top Position") to 1. This will cause your menu to remain at the bottom of the window, even when the page is scrolled. Since it is at the bottom already, the built-in anticollision mechanism should automatically cause the submenus to open upward. If they don't open far enough above the main menu, you can specify a vertical offset in the 2nd element ("Menu Top") of the submenu arrays. For example, a Menu Top setting of "offset=-50" in a submenu would move the submenu's opening position up an additional 50 pixles.

Hope that helps,

Kevin


Poster: spraine
Dated: Monday February 3 2003 - 22:19:04 GMT

Kevin--

Fabulous! Thanks.

When the cursor moves off a menu, it stays visible a little too long.

I presume I need to reduce TIMEGAP.

RE the "bottom" setting...
is it possible to use something like "bottom + 5" to bring it just up off the bottom?

Thanks


Poster: kevin3442
Dated: Tuesday February 4 2003 - 7:22:48 GMT

Hi Steve,
spraine wrote:
When the cursor moves off a menu, it stays visible a little too long.
I presume I need to reduce TIMEGAP.
You presume correctly. The value is in milliseconds.
spraine wrote:
RE the "bottom" setting...
is it possible to use something like "bottom + 5" to bring it just up off the bottom?

That'd make sense, but no. To move any menu -- submenu or not -- up from it's otherwise-normal position, use a vertical offset in the menu array's 2nd ("Menu Top") element, as described above. So, to do what you describe, you'd use "offset=-5" in the main menu array's 2nd element.

Hope that helps,

Kevin


Poster: spraine
Dated: Tuesday February 4 2003 - 16:03:59 GMT

Thanks Kevin--


RE http://our.homewithgod.com/spr/

Unable to insert a photo (or the news-ticker, or text) in the space between the two horizontal menus. (Anything appears in the top HEAD area, where the news-ticker is presently located.)

Solution? Create an overall table structure and put the menus in table cells, where they are also cells for use between the two menus?

Thanks,
Steve


Poster: kevin3442
Dated: Wednesday February 5 2003 - 0:01:03 GMT

Hi Steve,

Hmmmm... I really don't know. That's more of a page design/html issue, not so much a "using the menu" issue. I can tell you that, using the methods you've learned so far, the menus can be positioned independently of any other content on the page. And that's normally how it's done. The way you've approached it so far (i.e., "bottom" Screen Position and enabling Follow Scolling) is to position the menu in the window... i.e., relative to the window, regardless of what part of the page is being viewed. The only reason you'd want to bind a menu to a table cell is to keep the menu in the same spot on the page, relative to some other statically-placed content. But when the table cell holding the menu scrolls out of view, so does the menu!

You can, of course, use tables to help you position other elements on the page (pictures, etc.).

Cheers,

Kevin