View Full Version : multiple sized images in popupwindows

03-15-2004, 12:05 AM
wondering if anyone can help me-I have thumbnails that expand into medium sized images that I want to expand into larger images in popup windows...I have managed to get the medium sized pics but can't seem to bring in the larger images...can anyone tell from my code what I am doing wrong?Any help would be appreciated..
thank you

03-15-2004, 04:44 AM
You may want to use better "popup image viewer" scripts by checking my sig.

06-24-2004, 07:26 PM
i'm looking for this script "popup image viewer"
and i don't see it in your sig..?

where can i find a copy?

Willy Duitt
06-24-2004, 08:47 PM
Here 'ya go.
It looks like your still searching....
(although Glenn did tell one time I needed a check to see if the image loaded prior to popping the popup. Perhaps he'll come by again and point out what he meant.)

<script type="text/javascript">
function displayLarge(image){
var theImage = new Image();
theImage.src = image;
var width = theImage.width;
var height = theImage.height;
if(width <100) { width = 100 };
if(height<100) { height = 100 };

var openWindow = window.open('','display','width='+width+',height='+height);
writeln('<html><head><title>My Title Here</title></head>');
writeln('<body onload="self.focus()" onblur="self.close()"');
writeln('<div style="position:absolute;bottom:3px;left:0;text-align:center">');
writeln('<span style="font-size:12px;width:100%">');
writeln('<a href="javascript:self.close()">Close</a>');
} return false;


<TD align="center"><a href="images/17.jpg" onclick="return displayLarge(this.href)">
<IMG src="thumbnails/17.jpg" border="1" alt=17 width="55" height="70"></A></TD>

<TD align="center"><a href="images/18.jpg" onclick="return displayLarge(this.href)">
<IMG src="thumbnails/18.jpg" border="1" alt=17 width="55" height="70"></A></TD>

<TD align="center"><a href="images/19.jpg" onclick="return displayLarge(this.href)">
<IMG src="thumbnails/19.jpg" border="1" alt=17 width="55" height="70"></A></TD>


06-25-2004, 03:40 AM
i'm looking for this script "popup image viewer"
and i don't see it in your sig..?

where can i find a copy?
I already modified my sig to present my own scripts instead. ;)

I already replied to your PM but here's the link (http://www.codingforums.com/showthread.php?t=9836) to that script.

Willy, I don't remember saying that but probably what I told you was the display of "Loading..." title while the image is loading, which the 'Popup image viewer' has.