Positioning of submenus using image map

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
robertca
Beginner
Beginner
Posts: 5
Joined: Mon Jul 04, 2005 7:45 pm

Positioning of submenus using image map

Post by robertca »

I've created an image map so that when various sections are rolled over a different hyperlinked text menu will appear. I have used the US map menu as a template for doing this.

My question is: Is there a way to make each hyperlinked text menu appear in the exact same location on the screen? Currently they appear right beside the mouse cursor wherever the rollover happens to be.

Thanks!

Robert
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

Hi,

A url to the page so we can see what's up and exactly what you're trying to do would be best.

Are you asking how to set it up so that all submenus would open at a particular point on the 'map' so, no matter which link triggered the particular submenu it would open at, say 100px from the top and 100px from the left?

If that is what you mean you might take a look at the pop menu sample. There is also a methods and functions section which has information on setting a menu position, and at the bottom talks about pop function and how to specify where the menu is to open.

Ruth
User avatar
Andy
Milonic
Milonic
Posts: 3308
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy »

Declaring top and left properties to the sub menus will allow them to be fixed in place.

-- Andy
robertca
Beginner
Beginner
Posts: 5
Joined: Mon Jul 04, 2005 7:45 pm

Post by robertca »

Thanks for you help folks. using the popup function along with the image id and then positioning relative to the image did the trick. :D

Robert
Post Reply