How to get Mouseover to work with elements inside Div tags in IE?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apurvaG
    New Member
    • Apr 2007
    • 14

    #1

    How to get Mouseover to work with elements inside Div tags in IE?

    Hi All,

    I am applying some xslt template on a XML file to generate the HTML.

    This HTML has several <DIV> tags with mouseover and mouseout event associated to them.

    So if i do mouseover on a <DIV> it gets highlighted. And when I do mousout on a <DIV> highlight effect goes off.

    Its is working perfectly if the DIV has plain text. For example <DIV>This is some text inside a div</DIV>.

    But if the <DIV> contains some HTML tags like <a> <UL> <OL> <P> then it flickers alot when I do the mouseover.

    Can anyone know how to avoid this flickering effect.

    Thanks in Advance,
    ApurvaG
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    FOUC?
    Otherwise need to see the complete markup.

    Comment

    • Ciary
      Recognized Expert New Member
      • Apr 2009
      • 247

      #3
      my guess is that you generate a mouseout-event when your mouse passes an another tag within. what you can do is give all blockelements(l ike the ones you said) the same events as the div.

      Comment

      • Raja Nagendra
        New Member
        • Dec 2010
        • 1

        #4
        Use mouseenter and mouseleave instead of mousout ..

        Raja Nagendra Kumar,
        C.T.O
        www.tejasoft.com
        -Offshore Code Audit Excellence

        Comment

        Working...