![]() |
|
|
|
#1
|
||||
|
||||
|
Zitat:
HTML: HTML-Code:
<a class="menu" href="wiesehoeckli.htm" target="iframe" id="nav_wiese" onClick="activeClick(this.style.fontWeight, "nav_wiese")">Wiesehöckli</a> HTML-Code:
function activeClick(fontstyle, navid) {
navElement = document.getElementById(navid);
if (fontstyle=='normal') {
navElement.style.fontWeight = 'bold';
} else {
navElement.style.fontWeight = 'normal';
}
}
Was du also ändern müsstest: 1. jedem Navigationselement eine ID zuweisen 2. onClick-Element für jedes Navigationselement 3. javascript-funktion definieren
__________________
|
![]() |
| Lesezeichen |
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
| Themen-Optionen | |
| Ansicht | |
|
|
![]()