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.
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.
Comment