jag använder detta script just nu
<script language="javascript">
<!--
function show(imageURL, width, height)
{
NewImageWindow=window.open("", "", "width="+width+",height="+height);
NewImageWindow.document.open();
NewImageWindow.document.write("<html><head><title>"+imageURL+"</title></head>");
NewImageWindow.document.write("<body style='margin:0px;'><A HREF='javascript:window.close();'>");
NewImageWindow.document.write("<img src='images/"+imageURL+"' width='"+width+"' height='"+height+"' alt='Click To Close' border='0'>");
NewImageWindow.document.write("</A></body></html>");
}
//-->
</script>
och öppnar med
<a href="javascript:show('bild.jpg',500,375)"><img src="images/bild.jpg" alt="" height="190" width="190" border="0" /></a>
men hur kan man göra så att man hämtar bildens storlek och gör rutan så stor? så jag slipper lägga till storleken i länken