Posted By

bionickid on 11/24/09


Tagged

plugin jquery ie6 hover


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

jannisg


IE6 Hover


 / Published in: jQuery
 

  1. $(document).ready(function(){
  2. if (document.all) {
  3. $("#nav li").hoverClass("hover");
  4. }
  5. });
  6.  
  7. $.fn.hoverClass = function(c) {
  8. return this.each(function(){
  9. $(this).hover(
  10. function() { $(this).addClass(c); },
  11. function() { $(this).removeClass(c); }
  12. );
  13. });
  14. };

Report this snippet  

You need to login to post a comment.