JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Relative Positioning for a Popup Menu

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
thomasonk



Joined: 07 Feb 2007
Posts: 4

PostPosted: Mon Feb 12, 2007 6:07 pm    Post subject: Relative Positioning for a Popup Menu Reply with quote

What is the technique to use relative positioning with a popup but have the menu in a fixed location for the image that triggers the menu?
I have seen several posts with similar questions to this but I have not seen the solution.

I have a menu that is triggered by an image rollover but the page is a centered page so the image could appear at a different location depending on the browser's resolution, etc. I need a way to have it relatively positioned but have it so that it aligns with the image that is triggering it.

Everything I have tried so far has the menu popup at the mouse position so it does not always align correctly with the image.

Thanks in advance for you help.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon Feb 12, 2007 6:23 pm    Post subject: Reply with quote

What about creating a menu with a single top level item - your "hot" image?
Back to top
thomasonk



Joined: 07 Feb 2007
Posts: 4

PostPosted: Mon Feb 12, 2007 6:49 pm    Post subject: Reply with quote

I looked into that, but my images are already positioned where I want them. I was having a difficult time getting the images to line up the way I wanted when I tried to include the image in the menu.

If that is the answer I can work on it some more, but I thought there might be a way to position the menu on the image, even when the image wasn't necessarily in a fixed position.
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Mon Feb 12, 2007 7:11 pm    Post subject: Reply with quote

Using that image as a top-level item is most reliable and simple way. If you'll not succeed doing this, please send your files to javascript@cooldev.com, and I'll help.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1