The following div mouse events are called as soon as the mouse enters or exits the div. For some situations this simply is not ideal.
The following div onmouseenter event is not called when the mouse enters (it waits until it is what the user intended to do), but onmouseout is called as soon as the mouse leaves. This should be more idea for most people, but still not perfect since we may not want the onmouseout to be called as soon as the mouse leaves the div.
The following div onmouseenter event is not called when the mouse enters (it waits until it is what the user intended to do), and the same goes for the mouse leaves the div. It will wait until that is what the user intended.