私は、、、、、要素でdiv
あるを持っています。それらは動的に変化します(カルーセル)。したがって、ホバー時にこの変更を提供する停止する必要がありますが、機能しません(イベントは発生しません)。div
img
a
h3
input
setInterval
hover
jQuery('div.slider').on('hover', 'div, img, a, h3, input',
//Tried jQuery('body').on('hover', 'div.slider'...
//Alsro tried on('focusin focusout')
function(event){
console.log('on');
if(event.type === 'focusin'){
console.log(event.type);
stopCarousel();
}
else if(event.type === 'focusout'){
console.log(event.type);
startCarousel();
}
}
);
問題はどこだ?