mouseenter
第 1 版(2009-09-23 03:25:01 · おぎやす)を表示しています。 最新版に戻る
jQueryのイベントハンドラー。
ロールオーバーでアニメーションをつくろーとしてmouseoverをつかったらうまくいかなかった。
原因はelementとそのchildの扱いらしい。
微妙にmouseenterとmouseoverではchildに対する判定が違う。
完全に理解はしていないが、今回のケースでは試しにmouseenterでやったらうまくいった。
jQuery公式サイトからとってきた説明によると
http://docs.jquery.com/Events/mouseenter#fn>Show texts when mouseenter and mouseout event triggering. Mouseover fires when the pointer moves into or out from child element, while mouseenter doesn't.<<
mouseoverではchildへの出入りでも反応してるんかな?
履歴
- 第 2 版おぎやす2009-09-23 03:25:22
- 第 1 版おぎやす2009-09-23 03:25:01