Return to Snippet

Revision: 46441
at May 19, 2011 16:37 by f6design


Initial Code
$('.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 }); 
            }))
        }); 
    }
});

Initial URL
http://getsatisfaction.com/galleria/topics/how_to_get_the_current_image_link_and_use_it_into_a_function

Initial Description
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/

Initial Title
Integrate a lightbox with Galleria plugin

Initial Tags
jquery

Initial Language
jQuery