Unread 12-07-2007, 04:54 PM
googo1p1ex googo1p1ex is offline
Junior Member
Join Date: Dec 2007
Posts: 2
Default Popup menu problems

Hello! Newbie to forum, not so newbie to UDM. I can't get the "popup" style menu to work.

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!

Reply With Quote
Unread 12-07-2007, 08:30 PM
bcarl314 bcarl314 is offline
Senior Member
Join Date: Aug 2007
Posts: 141

Can you post a link to your site?
Reply With Quote
Unread 12-08-2007, 07:49 PM
googo1p1ex googo1p1ex is offline
Junior Member
Join Date: Dec 2007
Posts: 2

Aha, I figured out what I was doing wrong... thanks for the quick reply!

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

All times are GMT. The time now is 01:10 PM.

Powered by vBulletin® Version 3.0.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.