Can Image Map open popUp at FIXED position??

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Can Image Map open popUp at FIXED position??

Post by cubefree »

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?
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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: Select all

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: Select all

popup('popUpRTC')
Hope that helps,

Kevin
User avatar
cubefree
Super Advanced
Super Advanced
Posts: 82
Joined: Fri Aug 01, 2003 3:16 am
Location: Seattle, WA
Contact:

Post by cubefree »

Yes, of course! Does the popup function() take more than 4 arguments?
Thanks!
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

Hi cubefree,
cubefree wrote:Does the popup function() take more than 4 arguments?
No.

Kevin
Post Reply