/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if(jQuery(this).attr('rel') !== jQuery( img ).attr('src') ){ jQuery( img ).fadeOut('fast', function(){ jQuery(this).attr({src : toLoad}).fadeIn('fast'); }); };