Created
February 8, 2011 18:12
-
-
Save metamn/816883 to your computer and use it in GitHub Desktop.
Show larger versions of a thumbnail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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