View Single Post
Old 06-21-2002, 09:53 PM   PM User | #1
ginataylor50
New to the CF scene

 
Join Date: Jun 2002
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
ginataylor50 is an unknown quantity at this point
One popup window for many images to use, no toolbars, please help. Thanks

Hi javascript guru's

Please help with this one, I've been battling all day trying different scripts but none of them seem to work.
I don't want to have to make hundred of htm pages for all the different images, I just want to use ONE pop up window and let all my images use that, all the images are the same size and they all link from seperate thumbnail images. (Small thumbnail, if interested click that to see the larger image).
I'd like the pop up window to go centre on the screen if possible and I'd like it to just be a window, no toolbars.
I was given a one script that I thought should work but I can't get it to, I don't know what I am doing wrong.

<a href="javascript:thumbNailer("picture.gif");">click click</A>

<script><!--
function thumbNailer(pic) {
var newWin = window.open('standardpage.htm','picwindow','addrbar=0,toolbar=0,
location=0,directories=0,status=1,menubar=0,scrollbars=0,resizeable=0,width=550,height=425');
newWin.document.images['thePic'].src = pic;
}
//--></script>

inside of your standard picture file, you have an empty of invisible picture. this changes the source of that picture to whatever image you pass.

I am afraid you may have to explain in very simple terms as I am not very good at (thinking)

Thanks very much in advance.
ginataylor50 is offline   Reply With Quote