/ Published in: jQuery

Makes the images in Galleria gallery clickable, so you can see the full sized image in Fancybox (or the ligthbox of your preference). Get Galleria is here: http://galleria.aino.se/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('.images').galleria( { extend: function() { this.bind(Galleria.LOADFINISH, function(e) { $(e.imageTarget).click(this.proxy(function(e) { e.preventDefault(); // removes the garbage var obj = this.getData(); $.fancybox({ 'href': obj.image }); })) }); } });
Comments
