This is a discussion on Self resizing popup_image.php depending on picture size within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Self resizing popup_image.php depending on picture size ------------------------------------------------------------------------------ This contrib comes originally from two other popup contributions http://www.oscommerce.com/community/contributions,2240 http://www.oscommerce.com/community/contributions,2503 So ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Self resizing popup_image.php depending on picture size ------------------------------------------------------------------------------ This contrib comes originally from two other popup contributions http://www.oscommerce.com/community/contributions,2240 http://www.oscommerce.com/community/contributions,2503 So all credits go to the original coders. ------------------------------------------------------------------------------ As I am using pictures with different heights and widths I modified the script and made it comfortable for me. Check it and use it if you like. This popup_image.php shows the product name, the big picture, the price and the product description. The popup will resize itself according to the size of the picture no matter if there are different picture sizes. The popup window will close itself when clicked into the popup or into the main window. The visitor does not have to click any window-shut-down button, just does anything and the window is closed. So there is even a little prevention of steeling pics (not for the cracks of course). Depending on the length of your product description you have to adapt the length of the window by increasing/decreasing the value 300 in line: imgHeight = document.images[0].height+300-i; If you want to adjust the place where the popup appears on the screen you have to do this in catalog/product_info.php find the javascript definition function popupWindow(url) and change the values for 'top' and 'left'. -------------------------------------------------------------- Step 1. Backup your files first :-)) do it Step 2. copy the popup_image.php to the folder catalog --------------------------------------------------------------- greetz pillepalle More...
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| popup_image.php error log entry | torweb | osCMax v2 Customization/Mods | 0 | 07-19-2006 10:01 AM |
| Full size picture on product page. | h4ppy_girl | osCommerce 2.2 Modification Help | 0 | 09-24-2004 09:29 AM |
| Main body text size/size of search box/adding img to footer | thecandypam | osCommerce 2.2 Modification Help | 1 | 07-10-2004 10:58 AM |
| BTS 1.2a Upgrade Package : popup_image.php FIX | duntuk | osCMax v1.7 Discussion | 1 | 02-02-2004 02:23 PM |
| adding differing prices for same item depending on format | Typeface | osCommerce 2.2 Modification Help | 0 | 07-27-2003 10:53 AM |