td.active {color: red;}
wie weise ich nun der "zelle" die class active zu?
document.getElementById("zelle").className="active";
MfG, Thomas
cool, danke!
das mit dem zuweisen klappt. doch bezieht sich color nur auf text, nicht auf einen anchor (ich hab da links drin).
ich bräuchte theoretisch sowas wie:
td.active {a:link: color: red;}
oder wird ein anchor weiter vererbt:
a.active:link {color: red}
ich hab da wohl etwas syntaxprobleme. (gibts irgendein nachschlagewerk ausser selfhtml, speziell für css/js ?)