DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Hover 4 IE6

06.17.2009
| 3069 views |
  • submit to reddit
        add a class hover for IE6

/* IE6 - pseudo class :hover */
$(document).ready(function(){
  if(jQuery.browser.msie && jQuery.browser.version<7){
    $('[class*="bla"]').hover(
		  function () {
			$(this).addClass('hover');
		  }, 
		  function () {
			$(this).removeClass('hover');
		  }
	  );
  }  
});