CSS event:Selectors
Saturday, July 29th, 2006Justin Palmer has created a wonderful JavaScript snippet named CSS event:Selectors that allows you to allow you access to Javascript events using a CSS style syntax. Here is a quick example:
var Rules = {
'#icons a:mouseover': function(element) {
element.style.display = "none";
},
'#icons a:mouseout': function(element) {
element.style.display = "block";
}
}
Pretty sweet!


