Prev Previous Post   Next Post Next
Unread 12-07-2007, 03:54 PM
googo1p1ex googo1p1ex is offline
Junior Member
Join Date: Dec 2007
Posts: 2
  #1  
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...

Code:
<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>
</div>
... my menu looks like...

Code:
<ul id="udm" class="udm">
 <li id="general"><a href="#">GENERAL INFO</a>
  <ul>
   <li><a href="?Message">A Message from the Chairman</a></li>
   <li><a href="#">Who Runs Our CFC?</a>
   ...
... and my javascript looks like...

Code:
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!

Dave
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 02:37 PM.


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