问题
I am using the fancybox.I want to display the image gallery using the galleria plugin inside the fancy box similar to this
jQuery(".pika-stage img").live('click',function(){
var product_id = <?php echo $Product->id;?>;
jQuery.ajax({
url: "<?php echo $currenturl;?>",
type: "POST",
data:{tasksubmit:"enlarge",productid:product_id},
success: function(data){
var gal_img ='<div id= gallery>'+data+'</div>';
jQuery.fancybox({
'content': gal_img
});
}
})
});
回答1:
Finally i got the solution for displaying the gallery inside the light box. I am using the Pretty photo plugin for displaying the gallery in the light box. Demo for Preety Photo
来源:https://stackoverflow.com/questions/10908093/is-there-any-option-to-display-the-galleria-gallery-inside-the-fancybox