oldworldcharms Posted December 2, 2004 Posted December 2, 2004 I would like to do two things with the click to enlarge. I have the extra image contribution installed and instead of having Click to enlarge below each small image I would like to place one Click to enlarge above the images then a line <br> then the pictures. here is the code in the items page. Can someone tell me how this is done? <td class="main" width="<?php echo EXTRA_IMAGE_WIDTH; ?>" valign="top"><?php echo (DISPLAY_PEI_CLICK_TO_ENLARGE == 'false' ? '' : '<a onclick="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'peiID=' . $extra_images['products_extra_images_id']) . '\'); return false;" href="' . tep_href_link(DIR_WS_IMAGES . $extra_images['products_extra_image']) . '" target="_blank">') . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], addslashes($product_info['products_name']), EXTRA_IMAGE_WIDTH, EXTRA_IMAGE_HEIGHT, 'hspace="5" vspace="5" class="productInfoThumbnail"') . (DISPLAY_PEI_CLICK_TO_ENLARGE == 'false' ? '' : '<br><center>' . TEXT_CLICK_TO_ENLARGE . '</center></a>');?></td> The second thing I would like to do is there is the main image on the image page and under it is Click to Enlarge. Is a way to put a table with a link below: echo '<a onclick="java script:popupWindow(\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\'); return false;" href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH*1.5, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5" class="productInfoThumbnail"') . '<br><br>' . TEXT_CLICK_TO_ENLARGE . '</a>';
Recommended Posts
Archived
This topic is now archived and is closed to further replies.