I guess that's because of event bubbling. For example, when you move your mouse into and out of any anchor inside the div, the div's mouseover and mouseout event handlers would also execute, even thought you only want them to execute when you actually move into or out of the div. Does it make sense?
|