Skip to content

Instantly share code, notes, and snippets.

@metamn
Created February 8, 2011 18:12
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 metamn/816883 to your computer and use it in GitHub Desktop.
Save metamn/816883 to your computer and use it in GitHub Desktop.
Show larger versions of a thumbnail
jQuery("#inspiration #item span.original").click(function(){
var link = jQuery(this).parent().parent().children('img').attr('rev');
var str = '<div id="item" class="original">';
str += '<img src="' + link + '" />';
str += '</div>';
jQuery(this).parent().parent().after(str);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment