Mouse Over not firing on child elements

a place to get help

Moderator: 1.1 Moderators

Mouse Over not firing on child elements

Postby blindMoe on Mon Nov 23, 2009 8:02 am

I am having a problem where the onmouseover event is not firing when the mouse is hovering over a child element of the div that has the onmouseover event linked to it. I am doing something as simple as:

  1.  
  2.                         testdiv.addEvent('mouseover',
  3.                                 (function(event) { alert('mouseover detected');
  4.                         }));
  5.  


I know that the mouseover event is being set correctly because if I hover over the div and not a child element of the div, the alert is fired.

Can anyone think of why this may be happening? I am out of ideas :(

Thanks in advance
blindMoe
 
Posts: 12
Joined: Sun Sep 28, 2008 10:06 pm

Re: Mouse Over not firing on child elements

Postby daKmoR on Mon Nov 23, 2009 10:40 am

  1. testdiv.addEvent('mouseenter', function() {
  2.     alert('entered it');
  3. });
"Speak when you are angry and you will make the best speech you will ever regret." - Ambrose Bierce
User avatar
daKmoR
Site Admin
 
Posts: 860
Joined: Mon Jul 14, 2008 11:40 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest