1
Zarei
Positioning of menues in 2.2
  • 2005/7/18 21:38

  • Zarei

  • Just popping in

  • Posts: 13

  • Since: 2005/5/26


Hi, I've been trying to add some more dropdown menus using the built in javascript menus. I'm having some trouble getting the menu to appear under the menu button.

Here's how it looks in theme_usernav.html:

<table cellspacing="0" cellpadding="0" id="menu1" class="NavMenu">
<
td>
<
a class="button" href="javascript:void(0)">Om W</a>
<
div class="section">
<
a class="item" href="http://localhost/xoops22/modules/wiwimod/index.php?page=Huset">Huset</a> 
                                <
a class="item" href="Test3">Test3</a> 
                            </
div>
<
script type="text/javascript">
var 
menu1 = new AdMenu("menu1");
menu1.position.level1.top = 1;
menu1.position.level1.left = 50;
menu1.position.levelX.top = 0;
menu1.position.levelX.left = 50;
menu1.init();
</
script>
                            </
td>
</
table>

With this the button appears next to the User Action button but the menu appears in the right part of the screen.
Resized Image

Gratefull for any help