/ Published in: jQuery

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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; });
URL: http://jsfiddle.net/AKMHc/1/
Comments
