2011-03-03から1日間の記事一覧
var opacity = '0.7'; $('img.fadeImg').each(function() { var img = $(this); img.wrap('<span class="inlineBlock"></span>'); img.hover( function() { img.stop(true, true).fadeTo(50, opacity).fadeTo(500, 1.0); }, function() { img.fadeTo(100, 1.0); } ); }); .wrap()でimg要素をin…