Re: fixed menus, multiple menus
2004/12/22 14:49
Viewed 8206 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.
Re[2]: fixed menus, multiple menus
2004/12/23 10:11
Viewed 10425 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
Re[3]: fixed menus, multiple menus
2004/12/23 10:18
Viewed 12740 times
Replies: 1/1

Not yet possible for the "static" problem (even if you specified "electric: false", the menu still hides when one clicks outside it). I'll consider this for the next version. By the way, have you registered it yet?

last
Google