Skip to content

Instantly share code, notes, and snippets.

@ryanmcgrath
Created November 4, 2011 06:58
Show Gist options
  • Save ryanmcgrath/1338815 to your computer and use it in GitHub Desktop.
Save ryanmcgrath/1338815 to your computer and use it in GitHub Desktop.
fasdfasdafsd
$('.blog-post-content').find('img').each(function() {
$(this).parent().mouseover(function() {
$(this).find('span').fadeIn('slow');
}).mouseout(function() {
$(this).find('span').fadeOut('fast');
}).css({'position': 'relative'}).append(function() {
return $('<span>This is an Attribution</span>').css({
'background-color': '#333',
'position': 'absolute',
'bottom': '0',
'left': '0',
'color': '#f9f9f9',
'padding': '3px'
}).hide();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment