Lav dit billede / thumbnail tag således: <img src="ditThumbnail.jpg" onclick="window.open('popup.htm?ditbillede.jpg'), 'pop','resizable=1,HEIGHT=200,WIDTH=200');">
Pop vinduet tilpasser sig så størrelsen på billedet automatisk.
Gem nedenstående som popop.htm i samme mappe som billederne
<html>
<head>
<title>Galleribillede</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language='javascript'> 
   var arrTemp=self.location.href.split("?"); 
   var picUrl = (arrTemp.length>0)?arrTemp[1]:""; 
   var NS = (navigator.appName=="Netscape")?true:false; 
     function FitPic() { 
       iWidth = (NS)?window.innerWidth:document.body.clientWidth; 
       iHeight = (NS)?window.innerHeight:document.body.clientHeight; 
       iWidth = document.images[0].width - iWidth; 
       iHeight = document.images[0].height - iHeight; 
       window.resizeBy(iWidth, iHeight); 
       self.focus(); 
     }; 
 </script>
</head>
<BODY bgcolor="#000000" onload='FitPic();' topmargin="0"  
marginheight="0" leftmargin="0" marginwidth="0"> 
 <script language='javascript'> 
 document.write( "<img src='" + picUrl + "' border=0>" ); 
 </script> 
</BODY> 
</HTML>
Mvh
sMorch