Note: Instead of changing the file in /template_default, make a copy, edit and save in your custom template folder: /includes/templates/your_template/templates/tpl_modules_main_product_image.php.
I think you are being a bit overcomplicated. Using javascript to display a static image is unnecessary, and having nothing in the <noscript> option means anyone with js off will not be able to see the image at all.
I think you can eliminate the js entirely here and just say
PHP Code:
...
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<div id="productMainImage" class="centeredContent back">
<?php echo zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT); ?>
</div>
Bookmarks