$('.note').live('mouseover mouseout', function(event) { if (event.type == 'mouseover') { $(this).fadeTo(10,0.7); } else { $(this).fadeTo(10,1); } });