Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Making lightbox contribution work with the 3 product images contribution ?


rommany

Recommended Posts

Hello

 

Can someone please help, sometime ago i installed the 3 images in product_info.php and it works fine, know i have installed the lightbox contribution and this also works fine but only on the top image, i have tried to make it work with images 2 and 3 but everytime i mess around with it its not quite working.

 

Script for product image number two as below:

 

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link

(FILENAME_POPUP_IMAGE_2, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image

(DIR_WS_IMAGES . $product_info['products_image_2'], addslashes($product_info['products_name']),

SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' .

TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

<noscript>

 

And this is the lightbox script that i would like to make work with the above code:

 

<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image_2']) . '"

target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info

['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' .

TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

 

Sorry to be a pain... :thumbsup:

 

Kind regards

 

David

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...