View Full Version : Pop up windows!


welshie3
06-19-2003, 12:00 AM
I'm having woes with pop-up windows... On my page (http://www.lairoftheladybird.com/maverickphotos.html) I've managed to create a pop-up window for the first image, but when I try to use the same script for the second, it doesn't work.

Is there a script for multiple image pop-up windows that I could use?

Thank you! :D

amicus
06-19-2003, 12:32 AM
here's how you do it. just put the popup script inside the 'script' tag and pass in the information that you want :)


script:
function popUp( url, title, features ) {
window.open( url, title, features );
}

link or what ever you're using to trigger the popup (javascript is 1 word and the whole thing is 1 line):
<a href="javascript:popUp( 'collingwood02.html', 'PopUp', 'width=400,height=550,location=0,menubar=0,resizab le=0,scrollbars=0,status=0,titlebar=1,toolbar=0' );">Pop Up</a><br>

welshie3
06-19-2003, 01:10 AM
I'm sure I'm missing something very obvious, but this is what's happening now...

http://www.lairoftheladybird.com/mhte.html

What have I done to it? lol :D

amicus
06-19-2003, 02:15 AM
your missing the '(' in after the popUp :)

welshie3
06-19-2003, 01:58 PM
Ah ha! Beautiful!

Thank you very much :D :D