2011-07-14 2 views
0

マウスオーバーがどれだけ長く画像をサイズ変更しても、次の問題があります。Googleタイプの画像サイズ変更

$('a img').mouseover(function(){ 
      $(this).delay(1500).animate({ 
       width: "315px", 
       height: "225px", 
       marginLeft: "-50px" 
      }, 1500); 
     }); 
+1

あなたの問題は? – genesis

答えて

2

http://sandbox.phpcode.eu/g/nyan-.php

はそれが http://img.karaoketexty.cz/img/artists/37103/nyan-cat-229003.gifに動作します:私は(あなたが時間の小さな期間のためにマウスを上に置く場合は、Googleの画像はリサイズされませんように)mouseoverイベントが.CODE 1.5秒になりたいです

<a href=""><img src="http://img.karaoketexty.cz/img/artists/37103/nyan-cat-229003.gif" width="145" height="125"/></a> 
<script> 
$('a img').hover(function(){ 
      $(this).delay(1500).animate({ 
       width: "315px", 
       height: "225px", 
      }, 100); 
     }); 
$('a img').mouseout(function(){ 

      $(this).animate({ 
       width: "115px", 
       height: "125px", 
      }, 1000); 

}); </script> 
+0

リサイズの前に少なくとも1.5秒間ユーザーにマウスを移動してもらいたい – George

+0

回答が編集されました。 – genesis

関連する問題