Guest User

Untitled

a guest
Feb 20th, 2018
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. /* You can use any element aside from the example below.
  2. How it works is that you simply create .hover, .active styles
  3. for whatever element you use this on. Works very well. Uses
  4. the underscore hack to targe ie6.
  5. */
  6.  
  7. input, button {
  8. _azimuth: expression(
  9. this.onmousedown = this.onmousedown || new Function("this.className += ' active'"),
  10. this.onmouseup = this.onmouseup || new Function("this.className = this.className.replace('active','')"),
  11. this.onmouseenter = this.onmouseenter || new Function("this.className += ' hover'"),
  12. this.onmouseleave = this.onmouseleave || new Function("this.className = this.className.replace('hover','')"), 'inherit');
  13. }
Add Comment
Please, Sign In to add comment