General Martok Posted January 6, 2005 Posted January 6, 2005 I have changed the default size of the product images, but cannot find a parameter to dynamiclyresize the pop up to the uploaded image size. I have a 400 x 400 image that is displayed at 200 x 200, but when I select view larger image, the poped window is so small that it has to be resized to view the full 400 x 400. In IE and netscape if you view gif or Jpg the window can auto resize to fit. What am i missing?
Rob123 Posted January 7, 2005 Posted January 7, 2005 As you have a honorable Klingon Name for your User ID, I'll be happy to give you a possible solution that works for me. Add the following javascript :blush: to the head of popup_image.php <script language="javascript"><!-- var i=0; function resize() { if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60); self.focus(); } //--></script> Add the following to the opening body tag onload="resize();" HTH, Robert
Recommended Posts
Archived
This topic is now archived and is closed to further replies.