Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge popup window


addison99

Recommended Posts

when I am viewing a product

 

http://4pets-store.co.uk/product_info.php/products_id/665

 

you can click on the CLICK TO ENLARGE button it brings up a popup window, how do I make this popup windows bigger so you see the whold image so the small part at the bottom is not hidden.

 

Thanks in advance

 

regards

 

Leonard

Link to comment
Share on other sites

how do I make this popup windows bigger so you see the whold image so the small part at the bottom is not hidden.

 

Or copy your image which is now 450px × 324px and paste it in into a new, white background image which is bigger, say 500px × 500px, and position it to suit.

Link to comment
Share on other sites

I know it can be done but I cant remember how I did it before

 

I need to exit some code some where but I have no idea where it at now, this makes the popup windows bigger

You could try this. In catalog/popup_image.php find

<script language="javascript"><!--
var i=0;
function resize() {
 if (navigator.appName == 'Netscape') i=40;
 if (document.images[0]) window.resizeTo(document.images[0].width +30, document.images[0].height+60-i);
 self.focus();
}
//--></script>

Change the number 60 in this part

document.images[0].height+60-i to a higher nember, like 150

You may need to lower the number 40 to a lower nember for firefox in this part.

if (navigator.appName == 'Netscape') i=40;

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...