I use jQuery mouseover to do something. But if I move mouse over about 5-7 time – it freezed.
Why this problem appears?
I tryed mouseover and hover.
Code example:
$('span.info_icon').mouseover(function() {
$('#info_box').show(600);
}).mouseout(function(){
$('#info_box').hide(600);
});
Live example: http://dev.dolina-imeniy.ru/fotogalereya/kp_usadba_tishnevo (over red “I”).
The problem:
#info_boxis overlapping the.info_iconwhich causes the mouseout event immediately to trigger. Therefore, it would be better if you give the info icon a higherz-indexthan the info box.