views:

125

answers:

2

I just want to implement hover on a single div(for IE 6). what is the simplest , lightest, solution in jquery?

<div class="hoverforie">

</div>

i will add this script in IE condition comment.

Thanks in advance.

+6  A: 

Use hover event

$(".hoverforie").hover(
      function () {
        // do your code for mouse over
      }, 
      function () {
        // do your code for mouse out
      }
    );
rahul
+1 for this answer!
Jonny Haynes
@rahul can you show an example how to use this can i use and id class or group selector
metal-gear-solid
You can use any selector for this.
rahul
A: 

And if you just want to apply it specifically for IE6... (although I think the methods are deprecated)

if ($.browser.msie && $.browser.version=="6.0")
{
    ...apply the hover function from @adamantium
}
David Liddle