Приветствую ребята, вновь обращаюсь за помощью, делаю магазин на JoomShopping и к фотографиям хочу подключить fancybox, но поскольку вызов данного скрипта уже идет посредством Elevatezoom решил, что нужно как то их скрестить
Вообщем вот первый кусочек кода:
//initiate the plugin and pass the id of the div containing gallery images
jQuery("#img_01").elevateZoom({gallery:'products-gallery', cursor: 'pointer', galleryActiveClass: 'active', imageCrossfade: true, loadingIcon: 'http://www.elevateweb.co.uk/spinner.gif'});
//pass the images to Fancybox
jQuery("#img_01").bind("click", function(e) {
var ez = jQuery('#img_01').data('elevateZoom');
jQuery.fancybox(ez.getGalleryList());
return false;
});
Здесь мы видим, что fancybox у нас подключается, но мне нужно к нему добавить навигацию сверху, автоплей и кол-во фото снизу, посредством данного кода:
jQuery(function($) {
$("a.fancybox-button").fancybox({
//padding: 0,
//fitToView : false,
helpers : {
title : { type : 'inside' }, // options: over, inside, outside, float
buttons : {}
},
afterLoad : function() {
this.title = '<b class="fancyboxCounter">Фото ' + (this.index + 1) + ' из ' + this.group.length + '</b>';
}
});
});
Вопрос в том, как скрестить первое со вторым, чтобы в конечном итоге работал и elevateZoom и Fancybox