Hi,
I'm using the following function:
function showpic(sURL){
newwindow=open(sURL,"Picture","scrollbars=no, toolbar=no, directories=no, menu bar=no, resizable=yes, status=yes, width=700, height=700");
}
in a very simple image gallery. sURL is the path to the image location. My hyperlink call looks like this:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:showpic("images/phinnegan/phin_beach.jpg" )" ></a>
My question is: is there a way that I can cause the new window to autofit to the size of the image? All the images in the gallery are different dimensions, and either there is alot of whitespace around the image, or it is larger than the window itself.
I apologize if this has been discussed, I checked the first 8 pages and didn't see it.
Thank you in advance for any help.
DRW
I'm using the following function:
function showpic(sURL){
newwindow=open(sURL,"Picture","scrollbars=no, toolbar=no, directories=no, menu bar=no, resizable=yes, status=yes, width=700, height=700");
}
in a very simple image gallery. sURL is the path to the image location. My hyperlink call looks like this:
<a href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:showpic("images/phinnegan/phin_beach.jpg" )" ></a>
My question is: is there a way that I can cause the new window to autofit to the size of the image? All the images in the gallery are different dimensions, and either there is alot of whitespace around the image, or it is larger than the window itself.
I apologize if this has been discussed, I checked the first 8 pages and didn't see it.
Thank you in advance for any help.
DRW