Wie könnte ich das machen das jeweils der aktive menüpunkt fett dargestellt wird ?
Probier das mal:
<a href="#" onclick="showit(0);fett('dick1','dick2','dick3')" id="dick1">Link1</a>
| <a href="#" onclick="showit(1);fett('dick2','dick3','dick1')" id="dick2">Link2</a>
| <a href="#" onclick="showit(2);fett('dick3','dick2','dick1')" id="dick3">Link3</a>function fett(A,B,C)
{
document.getElementById(A).style.fontWeight="bold";
document.getElementById(B).style.fontWeight="normal";
document.getElementById(C).style.fontWeight="normal";
}Gruß Wastl
oh danke.
Aber da ich das ganze später dynamisch erzeugen will hätte ich das gerne so, dass immer alle normal werden und nur das aktive fett. wie würde das gehen ?