Posted By

touffies on 11/11/10


Tagged

jquery ie6


Versions (?)

Add Hover


 / Published in: jQuery
 

Fix ie6 mouseover

  1. /* ------------------------------------------------------------------
  2.   Hover function --------------------------------------------------- */
  3. $.fn.addHover = function(classOver) {
  4. var classHover = classOver || "over";
  5. return this.hover(
  6. function(){ $(this).addClass(classHover); },
  7. function(){ $("."+classHover).removeClass(classHover); }
  8. );
  9. };

Report this snippet  

You need to login to post a comment.