mouseover mouseon イベントのバインドに問題があります。
off を使用してバインドを解除できます
$('.overview li a img').off('mouseover mouseon');
しかし、動作していないようです。
$('.overview li a img').on('mouseover mouseon');
助言がありますか?
mouseover mouseon イベントのバインドに問題があります。
off を使用してバインドを解除できます
$('.overview li a img').off('mouseover mouseon');
しかし、動作していないようです。
$('.overview li a img').on('mouseover mouseon');
助言がありますか?
mouseon
イベントはありません。がある:
さらに、ハンドラ関数を使用してイベントをバインドする必要があります。
$(".overview li a img").on("mouseover", function() {
console.log("Mouse is over");
});
これは、イベントがトリガーされるたびに実行される関数です。
$('.overview li a img').on({'mouseover mouseenter':function(event){
alert("hello");
}},null,null);
また
$('.overview li a img').on({'mouseover':function(event){
alert("hello")},
'mouseenter':function(event){
alert("world");
}},null,null);
.on() 関数にはバインドする関数が必要なため、機能するはずです。