Ultimate Web Site Drop Down Menu Forum

Ultimate Web Site Drop Down Menu Forum (http://www.udm4.com/forum/index.php)
-   Troubleshooting (http://www.udm4.com/forum/forumdisplay.php?f=12)
-   -   Popup menu problems (http://www.udm4.com/forum/showthread.php?t=763)

googo1p1ex 12-07-2007 03:54 PM

Popup menu problems
 
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...

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

bcarl314 12-07-2007 07:30 PM

Can you post a link to your site?

googo1p1ex 12-08-2007 06:49 PM

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

Dave


All times are GMT. The time now is 02:04 AM.

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