Horizontal menu can expand up?

Please note that official support for this menu version has now ceased. There are still plenty of users, though, and the forum is still running. Some of our long-time users may be able to help you out.
Post Reply
spraine
Super Advanced
Super Advanced
Posts: 45
Joined: Thu Jan 23, 2003 7:24 am

Horizontal menu can expand up?

Post by spraine »

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

Post by kevin3442 »

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
spraine
Super Advanced
Super Advanced
Posts: 45
Joined: Thu Jan 23, 2003 7:24 am

Post by spraine »

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
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 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
spraine
Super Advanced
Super Advanced
Posts: 45
Joined: Thu Jan 23, 2003 7:24 am

Post by spraine »

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
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 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
Post Reply