Skip to content

Instantly share code, notes, and snippets.

@subtleGradient
Created August 24, 2008 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subtleGradient/6962 to your computer and use it in GitHub Desktop.
Save subtleGradient/6962 to your computer and use it in GitHub Desktop.
/*IE6 specific code to get hover working for any element*/
#nav li,
.something-that-should-support-hover {
_azimuth: expression(
this.onmousedown = this.onmousedown || new Function("this.className += ' active'"),
this.onmouseup = this.onmouseup || new Function("this.className = this.className.replace('active','')"),
this.onmouseenter = this.onmouseenter || new Function("this.className += ' hover'"),
this.onmouseleave = this.onmouseleave || new Function("this.className = this.className.replace('hover','')"),
'inherit'
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment