Re[6]: Context menu and main menu
2004/11/22 10:35
Viewed 21454 times
Replies: 1/3

So I have to call 2 DynarchMenu.setups in the onload event in order to get both menus working, is that what you're saying?

Re[7]: Context menu and main menu
2004/11/22 11:05
Viewed 23879 times
Replies: 1/2

Yes.  To  give you an example:

<script type="text/javascript">
function init() {
DynarchMenu.setup("page-menu");
DynarchMenu.setup("context-menu", { context: true });
}
</script>

...

<body onload="init()">

...

<ul id="page-menu">
<!-- this will be the main menu bar -->
</ul>

...

<ul id="context-menu" style="display: none">
<!-- this will be the context menu -->
</ul>

Note that I added style="display: none" to the context menu UL to prevent it from displaying during the short period between the momen when page started loaded and the moment onload is called. You can use this technique for the first UL too, but it might be not desirable because the UL should stay visible for browsers where JS is disabled or don't support DynarchMenu.

I hope this helps.

last
Re[8]: Context menu and main menu
2004/11/22 11:24
Viewed 26189 times
Replies: 1/1

Thank you! I tried that same thing I think, must be user error ;) I'll take a look tonight and see. Thanks!

last
Google