Click to See Complete Forum and Search --> : keeping a pop up on top


evill_twin
06-17-2004, 04:21 PM
I'm sure there's a way to do this, I just don't know how. I want to keep the pop up window on top while users can click on the thumbnails on the page below to view the larger image.

Any ideas?

Thanks,
h.

Kor
06-18-2004, 04:46 AM
use object.focus() method

Suppose you opened a popup up like this:
pop = window.open('popup.html','popname','other_attributes_here')

now, whenever you need, you have the popup as a vriable, an object called pop, and you may manipulate it.

Your case

pop.focus()

Bhanu
06-18-2004, 10:21 AM
you can use
<body onblur="self.focus();">
for popup window body tag

Bhanu

evill_twin
06-18-2004, 02:16 PM
Yay! It worked, it finally worked.

Thank you both.

The successful solution: the body tag. I tried them both, but the body tag is the only one that worked. You have inspired me to learn more about focus and blur. Than you.

evill_twin
06-18-2004, 02:19 PM
one more question...

Why is all the punctuation after self.focus necessary [body onblur="self.focus();"> ] ? I tried it with and without and it only worked with the "();" .

Still learning.

Bhanu
06-18-2004, 02:53 PM
focus is a js function, all functions required paranthis
Bhanu
:)

evill_twin
06-18-2004, 04:00 PM
OK, new problem. Now that I've focused the popup, the user can't click on a thumbnail from the parent page. The end goal is to be able to click around on the thumbnails to change the image in the popup.

Can you check it out and tell me if there's a way to temporarily blur the popup after the image loads or if I need to find another way?

Note--only the first 2 thumbnails are currently active.

http://www.advancedexhibitmethods.com/customexhibits.htm

Thank you!

evill_twin
06-21-2004, 01:30 PM
I'm still playing with the temp. blur or time setting methods. Is there a better way though?