View Full Version : Popup menu problems

12-07-2007, 04:54 PM
Hello! Newbie to forum, not so newbie to UDM. I can't get the "popup" style menu to work. :confused:

I'm trying to position my menus relative to some links, but no matter what I do, the menus always wind up appearing way off to the right (way off screen in fact). Occasionally I've seen the menu popup on screen, although not quite positioned properly, but then it snaps back off the right side of the screen in about 1/2 a second.

My INI file is configured exactly like the example until you get to $um['items'], but I don't see anything beyond this point that appears to affect positioning to such a great extent.

My nav bar looks like...

<div id="mainmenu">
<a class="nav1" href="#" id="generallink">GENERAL INFO</a>
<a class="nav2" href="#" id="donorslink">FOR DONORS</a>
<a class="nav3" href="#" id="stafflink">FOR VOLUNTEERS</a>
<a class="nav4" href="#" id="charitieslink">FOR CHARITIES</a>

... my menu looks like...

<ul id="udm" class="udm">
<li id="general"><a href="#">GENERAL INFO</a>
<li><a href="?Message">A Message from the Chairman</a></li>
<li><a href="#">Who Runs Our CFC?</a>

... and my javascript looks like...

function openMenu ( i, o )
var coords = {
'x' : um.getRealPosition(o,'x'),
'y' : um.getRealPosition(o,'y')
um.ready ? um.activateMenu( i, coords.x+'px', coords.y+'px' ) : 0;

function closeMenu ( i )
um.ready ? um.deactivateMenu(i) : 0;

Any help would be greatly appreciated!


12-07-2007, 08:30 PM
Can you post a link to your site?

12-08-2007, 07:49 PM
Aha, I figured out what I was doing wrong... thanks for the quick reply!