Click to See Complete Forum and Search --> : Need Help w/ Popup


paiwacket
04-19-2006, 08:52 PM
I have just made the site below live, but have several questions about popups:

http://www.innessjewelrydesigns.com/gallery-necklaces.html

And the script that was suggested:

<a href="javascript:newWin=void(window.open('gallery-popup-neck/555N-neck-full.html','newWin','status=1,width=660,height=350,top=100,left=100'))">

1. How can I set the script to open the gallery pop-up _in front of_ the main window when clicking on other thumbnails?

2. Is it possible to be able have more than one window open, ie, a visitor can click on multiple thumbnails resulting in several popup windows open simultaneously?

Thank you, -Pai

felgall
04-19-2006, 10:03 PM
don't put javascript in the href as a lot of it wont work properly from there - put it in the onclick instead and get rid of the javascript: label.

To make sure that the window opens in front you need to use:

var newwin = window.open(....)
newwin.focus();

Since most popup blockers only allow popups to open when they are specifically requested to be opened by your visitors any attempt to open more than one will more than likely mean that they all get blocked.

See http://javascript.about.com/library/blpopup8.htm for my thumbnail image script which will reuse the same popup as your visitors click on different images.

paiwacket
04-20-2006, 08:59 PM
Is this what you meant:

<a href="javascript:newWin=void(window.open('gallery-popup-neck/555N-neck-full.html','var newwin = window.open(gallery-popup-neck/555N-neck-full.html)','newwin.focus();','status=1,width=660,height=350,top=100,left=100'))">

I think I am missing something. IE reports an error & FF opens a window to the wrong dimensions. Also tried using the code for the multiple popups w/ even less success.

Help! -Pai