![]()
Installation instructions for adding Magic Zoom™ to NetSuite ecommerce stores.
<meta http-equiv="imagetoolbar" content="no" />
<link rel="stylesheet" href="/site/MagicZoom.css" type="text/css" media="screen" />
<script src="/site/mz-packed.js" type="text/javascript"></script>
The code added to your <body> should look something like this:
<a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" class="MagicZoom">
<img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">
Instructions for adding zooming to multiple product images on the same page:
<TR><TD colspan=3>
<script type="text/javascript">
<!--
var altimages = new Array(
"<%=getCurrentAttribute('item','custitem_alternateimage01')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage02')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage03')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage04')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage05')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage06')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage07')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage08')%>" ,
"<%=getCurrentAttribute('item','custitem_alternateimage09')%>"
);
for (var i = 0; i < altimages.length; i++) {
if (altimages[i] == "" || altimages[i].substr(0,6) == "[Error") {
}
else {
if (i == 0) {
document.write("<BR><BR>Alternate images:<BR><BR>");
}
document.write(
"<a href=\"" + altimages[i] + "\" " +
"rel=\"mainImage\" " +
"rev=\"" + altimages[i] + "\" " +
">" +
"<img src=\"" + altimages[i] + "\" " +
"height=\"80\" width=\"80\" alt=\"\"/>" +
"</a>"
);
document.write(" ");
}
}
//-->
</script>
</TD></TR>
<body>
<!-- Default image sizes set in Image Resizing; Returns URL (Big Image) and IMG Tag HTML (Small Image) respectively -->
<!-- IMG Tag and attributes, instead of attribute “storedisplayimagehtml”, required here for Alternate Image process -->
<!-- Set your desired height & width parameters -->
<a href="<%=getCurrentAttribute('item','storeDisplayImage')%>" id=”mainImage” class="MagicZoom">
<img src="<%=getCurrentAttribute('item','storeDisplayImage')%>" alt="" height="300" width="300">
</body>
Try our other NetSuite tools to add more great image effects to your website.
Use Magic Zoom™ on any website. Download a module/plugin for a specific platform:
©2008 Magic Toolbox About | Contact | Support | Affiliates | Newsletter | Testimonials | License Agreement | Terms | Privacy