On 2006-10-19, John Hosking <Jo**@Hosking.name.invalidwrote:
Ben C wrote:
>On 2006-10-19, shapper <md*****@gmail.comwrote:
>>>Could someone, please, tell me how to change the background color of
div when the mouse is hover it?
div:hover {background-color: yellow;}
But I needn't expect this to work on IE (IE <7 anyway). Right?
Worth a try. Otherwise you have to use JS, for which the standard
function is addEventListener, but in IE you use I think attachEvent
instead.
Then in the handler you just go (roughly):
event.node.style.backgroundColor = "yellow";