/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function ChangeImage() { $('#some_image').hide() .load(function () { $(this).fadeIn(); }) .attr('src', 'http://www.gravatar.com/avatar/cfdd593cc22253bfd5c924a11c61fcc5?s=128&d=identicon&r=PG'); }
URL: http://jsbin.com/ejesu/100/edit