Hallo Javascript-Experten!
Ich wollte eine Navigation mit Javascript basteln. Ziel soll sein, dass sich bei bestimmten Ereignissen der Style der Tabellenzelle verändert. Diese Styles hab ich mit CSS formuliert:
.normal {
font-family: Comic Sans MS, Arial, sans-serif;
font-size: 10pt;
background-color: red;
font-color: black;
text-decoration: none;
text-align: left;
}
.aktiv {
font-family: Comic Sans MS, Arial, sans-serif;
font-size: 10pt;
background-color: black;
font-color: red;
text-decoration: none;
text-align: left;
}
Ein Link meiner Navigationsleiste schaut so aus:
[HOME](start.html)
Wenn ich das so programmiere, ändert sich im IE gar nichts, Mozilla ändert nur die Schriftfarbe beim onclick und Opera ignoriert das komplette CSS. Was mache ich falsch?
Gruß Alex