Posted By

cfleschhut on 04/30/10


Tagged

basic jquery gallery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

legacye


jQuery: Basic Image Gallery


 / Published in: jQuery
 

URL: http://jsfiddle.net/AKMHc/1/

  1. var gallery = $("#previewGallery");
  2. var placeholder = gallery.find("#placeholder img");
  3. gallery.find("ul a").click(function() {
  4. var href = this.href;
  5. placeholder.attr("src", href);
  6. //placeholder.fadeOut("fast", function() {
  7. // $(this).attr("src", href).fadeIn("fast");
  8. //});
  9. return false;
  10. });

Report this snippet  

You need to login to post a comment.