Integrate a lightbox with Galleria plugin


/ Published in: jQuery
Save to your folder(s)

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/


Copy this code and paste it in your HTML
  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. });

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.