You are missing the loading image for the multizoomer script (from multizoom.js):
Code:
var featuredimagezoomer = { // global options for Featured Image Zoomer:
loadinggif: 'spinningred.gif', // full path or URL to "loading" gif
magnifycursor: 'crosshair', // value for CSS's 'cursor' property when over the zoomable image
statusmessage: 'Current Zoom: ', // with below line, messages shown for variable zoom
usemousemessage: '<div style="font-size:80%">Use Mouse Wheel to Zoom In/Out</div>'
};
You can download it from the demo page or use your own.
On to your question. First backup everything in case there's a problem, then -
Get rid of this (it's not being used):
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
Change:
Code:
<select id="pattern-select" onchange="changeCamo2(this.value)">
to:
Code:
<select id="pattern-select" onchange="changeCamo2(this.value, this.options.selectedIndex)">
Move this:
Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
to just before the first changeCombo function:
Code:
<!--SCRIPTS-->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<script>
function changeCamo(option)
{
var path = "/views/i . . .
Edit the changeCombo2 function like so (or copy this one and replace the existing one with it):
Code:
function changeCamo2(option, index)
{
var path = "/views/images/products/5-reef-slayer-camo-";
//document.brand_image.src = path+option+"-medium.png";
jQuery('.productImgLg.thumbs a').eq(index).trigger('click');
document.getElementById('pattern-select').value = option;
var pattern = document.getElementById("pattern-select").value;
if (pattern == 'none')
{
document.getElementById('results').innerHTML = '<span style="font-weight: bold; color: #990000; size: 1.3 em; padding: 10px;">Please Select a Pattern</span>';
}
else
{
document.getElementById('results').innerHTML = '<button onclick="myFunction()" type="submit">Add to Cart</button>';
}
}
Though not required, I'd advise changing the init:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
$('#productImgLg').addimagezoom({ // multi-zoom: options same as for previous Featured Image Zoomer's addimagezoom unless noted as '- new'
speed: 500, // duration of fade in for new zoomable images (in milliseconds, optional) - new
descpos: true, // if set to true - description position follows image position at a set distance, defaults to false (optional) - new
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true //<-- No comma after last option!
});
})
</script>
to:
Code:
<script type="text/javascript">
jQuery(document).ready(function($){
$('#productImgLg').addimagezoom({ // multi-zoom: options same as for previous Featured Image Zoomer's addimagezoom unless noted as '- new'
speed: 500, // duration of fade in for new zoomable images (in milliseconds, optional) - new
disablewheel: true, // if set to true mousewheel will not shift image position while mouse is over image - new
magnifiersize: [400,400],
magnifierpos: 'right',
cursorshade: true //<-- No comma after last option!
});
})
</script>
Because the description feature is not being used, and the disablewheel feature makes sense in this situation, as it prevents the mousewheel from getting you off of the image while you're viewing it.
The browser cache may need to be cleared and/or the page refreshed to see changes.
Some additional notes:
The results div shows nothing on page load, but no pattern is selected. Perhaps it should say "Please Select a Pattern".
The quantity select is in a form that gets submitted, but the pattern select isn't in that or any form. How will you know which pattern was selected?
Bookmarks