Tag: MouseOver

XHTML and JavaScript checkbox colour change

I wrote a very simple little piece of JavaScript that changes the colour, background colour and font colour of a checkbox depending on the Mouse Event (onclick, onmouseover and onmouseout) and whether the checkbox is ticked or not. It can also reset it back to its previous settings too.
XHTML:

<label for=”cb1″ [...]