Return to Snippet

Revision: 26533
at April 30, 2010 05:19 by cfleschhut


Initial Code
var gallery = $("#previewGallery");
var placeholder = gallery.find("#placeholder img");
gallery.find("ul a").click(function() {
    var href = this.href;
    placeholder.attr("src", href);
    //placeholder.fadeOut("fast", function() {
    //    $(this).attr("src", href).fadeIn("fast");
    //});
    return false;
});

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

Initial Description

                                

Initial Title
jQuery: Basic Image Gallery

Initial Tags
jquery

Initial Language
jQuery