Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Multiple images popup window size


tjoppru

Recommended Posts

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...