What is the best way to handle mouse in and out my gadget

Hi,
Currently, I get stuck with this problem. What is the best way to detect mouse in and mouse out on live space gadget

Inside the gadget, there are many children elements but I only need to know when mouse is out of my gadget and when mouse gets in.

Thanks,

Bao Nguyen



Answer this question

What is the best way to handle mouse in and out my gadget

  • The ZMan

    Try attaching onmouseover and onmouseout to your root div (p_elSource), with their respective handlers to do whatever you need done on enter and exit.
  • latence01

    Oh, thanks.

    Before I tried that but I didn't change the height of p_elSource. It was so unstable mouseover. Sometimes, when I move inside the p_elSource, there are some points it cause mouseout.

    After changing the height of p_elSource, is works very well!


  • What is the best way to handle mouse in and out my gadget