diff --git a/jquery.elevatezoom.js b/jquery.elevatezoom.js index 1813e2d..82759cd 100644 --- a/jquery.elevatezoom.js +++ b/jquery.elevatezoom.js @@ -258,7 +258,7 @@ if ( typeof Object.create !== 'function' ) { //self.zoomContainer = $('
').addClass('zoomContainer').css({"position":"relative", "height":self.nzHeight, "width":self.nzWidth}); self.zoomContainer = $(''); - $('body').append(self.zoomContainer); + $(self.options.zoomContainerAppendTo).append(self.zoomContainer); //this will add overflow hidden and contrain the lens on lens mode @@ -1732,6 +1732,7 @@ if ( typeof Object.create !== 'function' ) { easing: false, easingAmount: 12, lensSize: 200, + zoomContainerAppendTo: "body", zoomWindowWidth: 400, zoomWindowHeight: 400, zoomWindowOffetx: 0, @@ -1774,4 +1775,4 @@ if ( typeof Object.create !== 'function' ) { onImageSwapComplete: $.noop }; -})( jQuery, window, document ); \ No newline at end of file +})( jQuery, window, document );