Skip to content

Instantly share code, notes, and snippets.

@ajpiano
Forked from anonymous/imageSwap.js
Created January 12, 2010 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajpiano/275660 to your computer and use it in GitHub Desktop.
Save ajpiano/275660 to your computer and use it in GitHub Desktop.
$(function() {
var photos = $("div.photo");
$('div.slides a').click(function() {
var rel = $(this).attr('rel');
photos.fadeOut(800,function() {
$('#'+rel).fadeIn(800);
});
return false;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment