StackOverflowからこのコードを取得しました:
$(document).ready(function() {
$(function(){
$('img').load(function() {
$(this).data('height', this.height);
}).bind('mouseenter mouseleave', function(e) {
$(this).stop().animate({
height: $(this).data('height') *
(e.type === 'mouseenter' ? 1.5 : 1)
});
});
});
});
IE、Chrome、Firefox、Operaで動作します。ただし、Operaでは、最初にページにアクセスしたときにのみ機能します(アドレスバーにリンクを入力した場合)。私は4ページのサイトを持っていますが、他のページからJqueryページに移動しても、マウスオーバーで写真がズームされません。