mrmgraham Posted August 20, 2011 Posted August 20, 2011 Was wondering if someone could help me, i've recently started work on a site that has lightbox on the main image on the product_info.php page. This page also has additional images which do not use the lightbox, just a popup. the addition images code is in includes\products_extra_images.php. My problem is i want to use lightbox for these images but i just cannot figure it out. The best i have got is the lightbox popping up but showing no image. The code below, the top line is the pop up for the images that is currently in use on the site. The second line is the lightbox code from product_info.php and the third is my attempt at combining the two. <!--POPUP--> <!--<?php echo "<a href=\"javascript:popupWindow('" . tep_href_link(FILENAME_POPUP_EXTRA_IMAGES, 'peiID=' . $extra_images['products_extra_images_id']) . "')\">" . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], addslashes($product_info['products_name']),SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2, "hspace='5' vspace='5'". " onMouseOver=\"javascript:window.document.prodimg.src='" . DIR_WS_IMAGES . $extra_images['products_extra_image'] . "'\" onMouseOut=\"javascript:window.document.prodimg.src='" . DIR_WS_IMAGES . $product_info['products_image'] . "'\"" ) . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>--> <!--/POPUP--> <!--LIGHTBOX FROM product_info.php--> <!--<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank" rel="lightbox" title="'.$product_info['products_name'].'" >' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>--> <!--/LIGHTBOX FROM product_info.php--> <!--MY ATTEMPT--> <?php echo '<a href="' . tep_href_link(FILENAME_POPUP_EXTRA_IMAGES, 'peiID=' . $extra_images['products_extra_images_id']) . '" target="_blank" rel="lightbox" title="'. $product_info['products_name']. '" >' . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH/2, SMALL_IMAGE_HEIGHT/2, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> <!--/MY ATTEMPT--> Any help would be greatly appreciated
Recommended Posts
Archived
This topic is now archived and is closed to further replies.