Ok. here is what I tried. It did not work. All it did, was open a new window with my image in it. The window did not re-size itself to my image.
<html>
<head>
<title>My page</title>
<script type="text/javascript">
<!--
function popUp (filename,imageWidth,imageHeight) {
geometry = 'height=' + imageHeight + ',width=' + imageWidth;
var newWin = window.open (filename, myPic, geometry);
return false;
};
// -->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<a href="images/file-ryan.jpg" onclick="return popUp (this.href, 95, 95)"><img src="images/file-corvus.jpg" width="95" height="95" border="0"></a>
Basically, I had an image on a website...like an icon lets say. I want to be able to click on that icon, and open an image in a pop up window, and have the window automatically rezise to the dimensions of my image.