對於任何人誰已經擁有noConflict設置,並且仍然出現問題在運行,我終於找到了a ticket raised on Github
// First call elevateZoom
$j(document).ready(function() {
$j('.product-image-thumbs').attr('id', 'zoomGallery');
//initiate the plugin and pass the id of the div containing gallery images
$j("#image-main").elevateZoom({gallery:'zoomGallery', cursor: 'pointer', galleryActiveClass: 'active', imageCrossfade: true, loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif'});
//pass the images to Fancybox
$j("#image-main").bind("click", function(e) {
var ez = $j('#image-main').data('elevateZoom');
$j.fancybox(ez.getGalleryList());
return false;
});
// after click you need to remove the current zoom
$j(".product-image-thumbs li img").click(function(){
$j("#image-main").attr("src", $j(this).attr("data-main-image-src"));
$j('.zoomContainer').remove();
$j('#image-main').removeData('elevateZoom');
// and then call it again
$j('#image-main').elevateZoom({
gallery: 'more-vies',
lensSize: 200,
cursor: 'pointer',
galleryActiveClass: 'active',
imageCrossfade: true,
scrollZoom : true,
responsive: true
});
});
});
請不要發佈相同的答案多個問題該解決方案。發佈一個很好的答案,然後投票/標記以重複關閉其他問題。如果問題不重複,*定製您的問題答案。* – Rizier123 2016-03-15 10:08:57