Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

changing image popup features


dolalu

Recommended Posts

I have a number of images on my site, when you click the thumbnail for the a bigger image pops up, the problem i have got is that the image sizes are bigger than the window and the window if fixed and cannot be scrolled, therefore you only see a % of the image, ineed to know how to either make the image fit the popup or make the window scroll. The 1st option is the best for.

Link to comment
Share on other sites

In catalog/product_info.php find:

 

 

<script language="javascript"><!--

function popupWindow(url) {

  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=1

50,left=150')

}

 

and change it to:

 

<script language="javascript"><!--

function popupWindow(url) {

  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=1

50,left=150')

 

Do you really want the image that large? :blink:

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...