Posted By

f6design on 05/19/11


Tagged

jquery Lightbox fancybox galleria


Versions (?)

Integrate a lightbox with Galleria plugin


 / Published in: jQuery
 

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

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/

  1. $('.images').galleria( {
  2. extend: function() {
  3. this.bind(Galleria.LOADFINISH, function(e) {
  4. $(e.imageTarget).click(this.proxy(function(e) {
  5. e.preventDefault(); // removes the garbage
  6. var obj = this.getData();
  7. $.fancybox({ 'href': obj.image });
  8. }))
  9. });
  10. }
  11. });

Report this snippet  

You need to login to post a comment.