Created
November 12, 2009 21:25
-
-
Save BrunoCaimar/233287 to your computer and use it in GitHub Desktop.
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
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