jquery js how to avoid massive onmouseover onmouseout firing
Posted
by stephan
on Stack Overflow
See other posts from Stack Overflow
or by stephan
Published on 2009-08-10T08:38:31Z
Indexed on
2010/05/14
8:34 UTC
Read the original article
Hit count: 328
i have a table with some columns. in each of them is a picture where i have a onmouseover onmouseout event on it, which show a message in a div and hide the msg.
my problem is - after a user goes quick from left to right (and moving) over a lot o images. all mouseover/out events of the images where executed, which looks stupid... is it possible to rearrange the internal event stack to avoid this? so that he executes only the current (mostly the first event) -> and than the last one, if it is not same type eg. if mouseover over first image is executed and mouse moving position stops over an image 3times next the first one. i can avoid all other events firing, because the mouse stopped over an image and the mouseover is like the one where i stopped with the mouse.
how can i avoid this multiple event firing?!
© Stack Overflow or respective owner