Menu
I need to dynamically change the style of the hover property of a link using DHTML.
For example, to change regular text colour of an element, I’d use
document.getElementById(‘thetextid’).style.color = whatever;
in css, I’d use this to set the link colour;
a:hover {
color: #E0218A;
}
but I have absolutely no idea how to do that in DHTML.
Any suggestions?