Wastl: Menuscript Problem

Beitrag lesen

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