Created
February 25, 2015 03:00
-
-
Save rickydazla/0cfcbbd7c5bba6fbec9d to your computer and use it in GitHub Desktop.
simple-image-switch
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
$('.thumb img').click(function(){ | |
$('img#featured').attr('src',$(this).attr('src').replace('compact','1024x1024')); | |
$(this).parents('li').addClass('active').siblings('li').removeClass('active'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment