Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enlarge Image popup window


lindendesign

Recommended Posts

Hi there.

 

Is it possible to make the pop up window that loads when you press the Enlarge Image link from a product page a little bit bigger.

 

It currently is opening but slightly cutting the image off until the window is manually resized.

 

Thanks in advance,

 

Craig

Craig Shaw

Linden Design

Link to comment
Share on other sites

Hi there.

 

Is it possible to make the pop up window that loads when you press the Enlarge Image link from a product page a little bit bigger.

 

It currently is opening but slightly cutting the image off until the window is manually resized.

 

Thanks in advance,

 

Craig

In the <head> section of /catalog/popup_image.php:

 

<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 numbers 30 and/or 60 to fit your image.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...