Skip to content

Instantly share code, notes, and snippets.

@mimetaur
Created March 27, 2010 21:00
Show Gist options
  • Save mimetaur/346349 to your computer and use it in GitHub Desktop.
Save mimetaur/346349 to your computer and use it in GitHub Desktop.
Hover jQuery Plugin for IE6
(function($) {
$.fn.extend({
addHover: function() {
return this.each(function() {
var $self = $(this);
$self.hover(
function() {
$(this).addClass("hover");
},
function() {
$(this).removeClass("hover");
}
);
});
}
});
}) (jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment