Window Pop-Up

They have: 383 posts

Joined: Sep 2000

I have a page with approximately 30 products, each product has a pop-up. All of these pop-ups open in the same window. The idea being I only want one pop-up open at a time. Now, the problem is that when a visitor “hides” a pop-up by clicking on the main window and then opens a new pop-up it loads in the same window (behind the main window) thus it doesn’t pop-up. Is there a way to add a function that will bring the pop-up window back to the front when they select a new pop-up? The script I’m using is below.

<script>

</script>

Thanks,

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

http://www.zerocattle.com/examples/popUp.html is a compiliation of the tutorials at http://www.irt.org (see that page for more information) and answers this question. And a whole lot of other questions.

If you use the code on my page, be sure to remove the hard returns from the code.

Otherwise, the tutorials listed for irt.org should answer your questions.

Smiling Suzanne

AndyB's picture

They have: 344 posts

Joined: Aug 1999

And just in case Suzanne's info and irt.org doesn't answer the question clearly for you .... http://www.centennialcra.com/ds-3/win-demo.htm is an example that holds the focus on the pop-up until you close it. Code is fully recyclable for multiple pictures.

They have: 383 posts

Joined: Sep 2000

Okay thanks. I had a feeling I had done it before. The ‘on focus’ joggled my memory.

Thanks,

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.