サイトを作っているのですが、
javascript
1$(function() { 2 var cnt = 0; 3 if (cnt % 2 == 0) { 4 $('#introduct').mouseover(function() { 5 $(this).animate({ 6 width: '1200px' 7 }, 700); 8 }); cnt ++; 9 10 if (cnt % 2 != 0) { 11 $(this).mouseout(function() { 12 $(this).animate({ 13 width: '500px' 14 }, 500); 15 }); cnt ++; 16 }; 17 } 18})
マウスオーバーしたときに横幅が伸びて、アウトしたときに縮むという処理をしたいんですが、これだと伸びただけでとまってしまいます。どうすればいいですか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/08/21 21:14