I am building a site for a client at the moment which is using your Zoom Functionality. Their exisitng general images are 150px x 150px squared. I have tweaked the layout code slightly so that when the zoom image function kicks in then a 330px white frame appear around the image.
What I wanted to try and do is apply the same 330px white frame around the default image even id the zoom function is not enabled. I tried this by appyling a table around the default image code and it works to a degree until you apply the zoom image and a 'javascript error' statin 'Exception thrown and not caught'.
Code: Select all
<actinic:block if="%3cactinic%3avariable%20name%3d%22IsProductImageDisplayed%22%20%2f%3e" >
<actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage1%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage2%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage3%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage4%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage5%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage6%22%20%2f%3e%20%3d%3d%20%22%22" ><table width="330" cellspacing="2" cellpadding="0" border="0" style="height:330px; border:0px solid #FF0000; background-color:#FFF;"><tr><td align="center" valign="middle" style="padding:3px; border:1px dashed #719a76;"></actinic:block>
<img src="<actinic:variable name="ProductImageFileName" />"
id="im_<actinic:variable name="EncodedProductAnchor" />"
border="0"
width="<actinic:variable name="ProductImageWidth" />"
height="<actinic:variable name="ProductImageHeight" />"
title="<actinic:variable name="ProductName" encoding="strip"/>"
alt="<actinic:variable name="ProductName" encoding="strip"/>" />
<actinic:block if="%3cactinic%3avariable%20name%3d%22ZoomImage0%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage1%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage2%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage3%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage4%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage5%22%20%2f%3e%20%3d%3d%20%22%22%0dOR%20%3cactinic%3avariable%20name%3d%22ZoomImage6%22%20%2f%3e%20%3d%3d%20%22%22" ></td></tr></table></actinic:block>
</actinic:block>