开发者

Jqzoom not working on safari

开发者 https://www.devze.com 2022-12-25 13:56 出处:网络
Hello I am using jqzoom and it is working fine on all brow开发者_如何学编程ser except safari there is an error

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();
  }
};
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号