...

View Full Version : multiple sized images in popupwindows



ellenjl
03-14-2004, 11:05 PM
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..
http://www3.telus.net/ellenjl/draft5.htm
thank you

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

angst
06-24-2004, 06: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, 07: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);
with(openWindow.document){
writeln('<html><head><title>My Title Here</title></head>');
writeln('<body onload="self.focus()" onblur="self.close()"');
writeln('style="background-image:url('+image+');');
writeln('background-repeat:no-repeat;width:'+width+';height:'+height+'">');
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>');
writeln('</span></div></body></html>');
close();
} return false;
}
//-->
</script>
</head>

<body>

<table><tr>
<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>

.....Willy

glenngv
06-25-2004, 02: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum