...

View Full Version : Two popups, same page



Suzanne
09-24-2005, 01:50 AM
I've been surfing for a while but have not found exactly what I need. Hopefully someone can help.

I have a gallery page with thumbnail images. Under each image there's a java link that opens a popup with an html document. I would like to add a link to each thumbnail that opens another popup with the large image. How would I do this?

My thanks in advance.

Suzanne

rm-f
09-24-2005, 04:08 AM
instead of links put buttons with onclick="open2pu(1);return false;"

function open2pu(thumbIdx) {
window.open(thumbIdx + '.html',......
window.open(thumbIdx + '.jpg',......
}

Suzanne
09-24-2005, 06:34 AM
Thank you for responding.* I'm lost. I've made a button, but I think I'm doing something incorrectly. It looks so simple yet I can't get it to work. Can you give me an example of exactly how you would do it so I can just copy, paste and edit?

My knowledge is limited, so any and all help is appreciated.

Suz

rm-f
09-25-2005, 02:12 PM
This link should help
http://codingforums.com/showthread.php?t=17254



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum