Forums
This topic is locked
Pop up Window resize to image
22 Nov 2002 16:08:46 E C posted:
As Advance Window 3 does not seem to support dynamic images, I have found some javascript that will open a new window to the size of the dynamic image.However it opens the window but i am left with the default white borders in the page.
My script is as follows:
function openImage(img){
image= new Image();
image.src=(img);
openWindow(img);
}
function openWindow(img){
if((image.width!=0)&&(image.height!=0)){
viewImage(img);
}
else{
stuff="openWindow('"+img+"')";
stuff1=setTimeout(stuff,20);
}
}
function viewImage(img){
w=image.width+0;
h=image.height+0;
dims="width="+w+",height="+h;
result=window.open(img,"",dims);
}
and the link to pop up the image is as follows
javascript<img src=../images/dmxzone/forum/icon_smile_shock.gif border=0 align=middle>penImage('../Files/<?php echo $rsAlbum_Photos_Image->Fields('imageID'); ?>__images')
Does anybody know how to turn off the borders in the page that opens up on the fly?
Thanks,
EC
Replies
Replied 25 Nov 2002 09:20:21
25 Nov 2002 09:20:21 Martha Graham replied: