» Forums
» DynarchMenu forum
» Support
» fixed menus, multiple menus
fixed menus, multiple menus
2004/12/22 13:09
Viewed 5814 times
Replies: 1/4

hi, has anyone figured out to have the menu fixed at top of window (doesn't move with scrolling)? also, can one have multiple menus on the same page? it doesn't seem to work if you do it the "straight-foward" way. thanks.

Re: fixed menus, multiple menus
2004/12/22 14:49
Viewed 8159 times
Replies: 1/3

You can have multiple menus. You must initialize them one at a time, the same way you init a single menu; just make sure that the <UL>-s have different ID-s ;-)

As for the "fixed" stuff, there are several solutions:

  1. [the most straightforward; doesn't work with IE].  Embed the top level menu in a DIV with style="position: fixed".  Then feel free to position that DIV anywhere you want.  Like this:

    <div style="position: fixed; left: 10px; top: 10px">
    <ul id="menu">
    ... the menu content
    </ul>
    </div>

    "position: fixed" is in the CSS specification for many long years now.  But, IE/Win does not support it.

  2. Use an IFRAME for the page content.  The menu works pretty well with this in Gecko and Internet Explorer 5.5+, but fails on Opera, Konqueror, Apple Safari (browser bugs; they show the IFRAME on top of the menu).  However, the next version will contain a demo that shows this technique.

  3. Use "position: fixed" for all browsers except Internet Explorer.  Work around Internet Explorer bugs by using a technique to emulate fixed position.

At Dynarch.com we are successfully using (3) for keeping the items on the left fixed.
last
Re[2]: fixed menus, multiple menus
2004/12/23 10:11
Viewed 10360 times
Replies: 1/2

thanks. the problem was that, in testing it out, i had the same keyboard shortcuts assigned for both my menus & it didn't like that. couldn't get fixed positioning to work in IE as i had hoped, but am using a javascript method instead.

one or two more questions: any way to have submenus "static" - that is, they stay there until they are dismissed. for example, i want a menu at the bottom, and when you click "notes" it pops up a div allowing you enter notes. however, i want the notes div to be visible until someone "hides" it. is this too much to ask from this menu? i know i could just do it manually, but i wanted to keep the same look & feel for the main menu & this bottom bar...

thanks. great product!

last
Google