Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:20
Can Image Map open popUp at FIXED position??
Poster: cubefree
Dated: Tuesday July 13 2004 - 2:03:32 BST
Is it possible to make an image map popUp menus at a fixed position?
Each browser seems to be slightly different in this regard.
IE6/Firefox/Netscape - popUp position is relative to the cursor
Opera7.23 - Opens exactly where the menu is defined in top and left properties
http://cubefree.com/clients/star/dev/star/
Mouseover "Respond to Cooperation" (either the text link or on the image map) and the pop up will appear in the lower right hand corner, but way way down...
Can I get the popup to follow the absolute top and left coordinates set in the menu_data.js file?
Poster: kevin3442
Dated: Tuesday July 13 2004 - 16:56:19 BST
Hi,
I think there are a couple of issues:
(1) You're loading your menu code inside of a div, which could affect positioning differently across browsers. I'd suggest loading them in the <head>
(2) popup() takes a variable number of parameters, as described here. Your call to popup()
Code:
popup('popUpRTC','popRTC')
is telling the menu system to open the named menu at the location of the object named/ID'd as 'popRTC', but the menu also has a top and left position set. If you want the top and left positions set in the menu to take precedence, then only pass the menu name to popup(), like so:
Code:
popup('popUpRTC')
Hope that helps,
Kevin