tjoppru Posted January 21, 2009 Share Posted January 21, 2009 I am not able to get the popup image box to open in a smaller size than the entire window. Here is my code. I am using Multiple Images addon located here http://addons.oscommerce.com/info/5930 Any help would be appreciated. <table border="0" cellspacing="0" cellpadding="2" align="right"> <tr> <?php $PicCount = 0; echo "<td>"; echo '<a 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, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; $PicCount = $PicCount + 1; if ($product_info['product_image_2'] != "") { echo "<td>"; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['product_image_2']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['product_image_2'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; echo "</td>"; $PicCount = $PicCount + 1; } if ($PicCount == 2) { echo "</tr><tr>"; $PicCount = 0; } if ($product_info['product_image_3'] != "") { echo "<td>"; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['product_image_3']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['product_image_3'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; echo "</td>"; $PicCount = $PicCount + 1; } if ($PicCount == 2) { echo "</tr><tr>"; $PicCount = 0; } if ($product_info['product_image_4'] != "") { echo "<td>"; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['product_image_4']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['product_image_4'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; echo "</td>"; $PicCount = $PicCount + 1; } if ($PicCount == 2) { echo "</tr><tr>"; $PicCount = 0; } if ($product_info['product_image_5'] != "") { echo "<td>"; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['product_image_5']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['product_image_5'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; echo "</td>"; $PicCount = $PicCount + 1; } if ($PicCount == 2) { echo "</tr><tr>"; $PicCount = 0; } if ($product_info['product_image_6'] != "") { echo "<td>"; echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['product_image_6']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['product_image_6'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; echo "</td>"; } ?> <tr> </table> </td> </tr> </table> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.