views:

121

answers:

1

Is there any jquery plugin similar to Whatever:hover http://www.xs4all.nl/~peterned/csshover.html ?.I'm using jquery library already so is there any jquery plugin to make hover possible on all element in IE 6 like Whatever:hover htc does?

A: 

Yes, you can use the .hover helper in jQuery to add IE6 support (you need to adjust the CSS as well).

Javascript:

$('div').hover(function(e) {
  $(e.target).addClass('hover');
},function(e) {
  $(e.target).removeClass('hover');
});

CSS:

div:hover,div.hover{background:red}
David
FYI, you could use toggleClass() instead of add/remove class. And $(this) instead of function(e) and e.target.
rochal
do u know any tutorial and example of this
metal-gear-solid
what about http://docs.jquery.com/Events/hover ?
rochal
how to add hover to every tag in once like Whatover:hover does?
metal-gear-solid
I need a plugin to apply hover on all items without declaring for particular item
metal-gear-solid