Code:
<script type="text/javascript">//<![CDATA[
document.write('<a href="<?php echo $product_flypage ?>" target="_self">');
document.write( '<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?></a>' );
//]]>
</script>
But, at that point, no javascript is required:
PHP Code:
<a href="<?php echo $product_flypage ?>" target="_self">
<?php echo ps_product::image_tag( $product_thumb_image, 'class="browseProductImage" border="0" title="'.$product_name.'" alt="'.$product_name .'"' ) ?></a>
should do just fine.
Bookmarks