Skip to content

Instantly share code, notes, and snippets.

@BrunoCaimar
Created November 12, 2009 21:25
Show Gist options
  • Save BrunoCaimar/233287 to your computer and use it in GitHub Desktop.
Save BrunoCaimar/233287 to your computer and use it in GitHub Desktop.
var imgs = $('#div_memethis_overlay img');
imgs.each ( function(i, img) {
if (img.src !== 'http://memethis.com/img/overlay_logo.png') {
$(img).mouseover(function(f) {
console.log('mouseover', $(f.target).width(), $(f.target).height());
$(f.target).width($(f.target).width() *4);
$(f.target).height($(f.target).height() *4);
}
);
$(img).mouseout(function(f) {
console.log('mouseout', f.target);
$(f.target).width($(f.target).width() /4);
$(f.target).height($(f.target).height() /4);
}
);
}
});
console.log('ok')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment