A demonstration page showing different implementations of changing the background colour of an element
Whatever:hover is implemented on this page for IE7 and lower- No hover
- CSS :hover
- Class name
- JS Variable
- "Hardcoded"
- JS Function
- No changes
- Using CSS :hover pseudo class
- Using javascript to change the elements className
- Using a javascript variable to change the background
- Using hardcoded javascript to change the background
- Using a javascript function to change the background