How can I pair handlers for mouse event in CSS
According to XHTML 1.0 transitional events handlers should be开发者_如何学Go paired. I.e the event handler onmouseout
should be paired with onblur
. How can I do that?
I'm not sure what this has to do with CSS specifically, so your title is a little confusing. You can pair event handlers in an HTML element by assigning JavaScript handlers for both events. Normally you see onmouseover
paired with onmouseout
, and onFocus
paired with onBlur
. See the onmouseout Event example at w3schools.com. The two event handlers are paired in the tag
<a href="http://www.w3schools.com" target="_blank" onmouseover="mouseOver()" onmouseout="mouseOut()">
精彩评论