Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Info Image MISSING (IE Only)


swissarmyknife

Recommended Posts

I have installed the latest Auto Resize Images contrib and it works GREAT on every browser BUT IE on WIN. :(

 

The page renders with a JS error linked to this code:

 

<script language="javascript"><!--
document.write('<?php echo '<a href="javascript: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']), (SMALL_IMAGE_WIDTH*2), (SMALL_IMAGE_HEIGHT*2), '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'], (SMALL_IMAGE_WIDTH*2), (SMALL_IMAGE_HEIGHT*2), 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> 
</noscript>

 

I've searched the forums, messed with the code, and can't figure out what is wrong here, but if I take out the JS and just leave the html, it works. :'(

 

Any ideas? I must be missing the obvious...

 

Thanks!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...