Jqzoom not working on safari
Hello I am using jqzoom and it is working fine on all brow开发者_如何学编程ser except safari there is an error "TypeError: Result of expression 'smallimagedata.pos' [undefined] is not an object."
Please if somebody can help the page is http://www.legzskin.com/products.php?product=CHARMED when u mouseover the 3 images it should appear zoom window over the flash on the left
This appears to be a problem with the smallimagedata properties not being set when the Loader class is used. Here's a workaround that seems to correct the problem.
Update the SmallImage.loadImage() method:
this.loadimage = function() {
this.node.src = image[0].src;
};
To this:
this.loadimage = function() {
this.node.src = image[0].src;
if (typeof smallimagedata.top === "undefined") {
this.node.onload();
}
};
精彩评论