Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Click to enlarge link


simplytaty

Recommended Posts

Posted

Hi everyone

I have checked some of the previous posts, but they don't seem to work for me, maybe because I have changed the sizes of the images. What I really need is to remove the javascript that creates a link to click to enlarge, but leave the image intact. I already removed the text, how to I remove the link?

 

The script for that section of my page is:

 

<td align="center" class="smallText">

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

<noscript>

<?php 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'], null, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

</td>

 

 

 

Thanks so much

Posted

you need to change

 

<td align="center" class="smallText">

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

document.write('<?php echo '<a href="java script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');

//--></script>

<noscript>

<?php 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'], null, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>

</noscript>

</td>

to

<td align="center" class="smallText">

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

document.write('<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), null, 'hspace="5" vspace="5"') . '<br>' ; ?>');

//--></script>

<noscript>

<?php echo tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], null, 'hspace="5" vspace="5"') . '<br>' ; ?>

</noscript>

</td>

 

I'm pretty sure that's correct.

give it a whirl and see what happens.

if you need to learn more about HTML and PHP, go to w3 schools thats where i have picked up what i need to know.

 

good luck

Archived

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

×
×
  • Create New...