Well, the size of the window (and therefore the image in it) is set here (green):
Code:
NewWindow(this.href,'mywin','520','680','yes','center')
Width is followed by height. The idea is to set these to image width+20 and image height+20.
However, if you do not want to pass the image size in this way, you can remove the red parts from these two lines in the function I wrote, as shown below:
Code:
win.document.write('<body bgcolor="#dddddd" text="#000000" style="margin:10px;padding:0;overflow:hidden;">');
win.document.write('<img width="'+(w-20)+'" height="'+(h-20)+'" galleryimg="no" src="'+mypage+'">');
Bookmarks