Welcome to WebmasterWorld Guest from 54.226.194.180

Forum Moderators: open

Message Too Old, No Replies

JavaScript - controlling a pop-up location

Our pop-ups are for definitions of GIS maps - but there's trouble

     

Lextech

7:18 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



Our pop-ups are for definitions of GIS maps - but there's trouble. Sometimes, the pop-up opens up over the link buttons. The definition pop-up window is set to open onMouseOver, not on click. So, if the window pops open over the button, it continually tries to open and "flashes". Is there a way to fix this with some extra code that will cause the popups to open only in the top, left of the parent window? I got the script from a free source, I don't write JS, so I don't know how to fix this. Thanks for any help.

dabrisz

7:39 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



I think this may help?? I don't write js, but I do use this script for something similar.

Place this script within the header tag. This javascript will make the window the "active" window and reposition it on the screen. It will pop-up in the upper right for a fraction of a second (depending on speed of computer) and relocate to the coordinates you provide.

<!--
self.focus()
self.moveTo(250,375)
//-->
<!--
function parent(url) {
opener.location = url;
}
//-->

toadhall

7:42 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



Hi Lextech

Another source that may help:

[webmasterworld.com ]
... messages 4,5, and 6.

BTW I got this by doing a site search with the phrase "javascript new window location". The site search facility really works well - access it from the top of the page.

Lextech

7:50 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



Excellent - I'll check out these references and see how it goes right now....thanks!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month