Hey Ihrs,
hab da ein Problem mit meiner JavaScript Navigation.
Also hab da eine Navigation erstellt, die folgendermaßen ausschaut:
Head:
<!–
function chgBgCol(id,farbe) {
if (document.all)
document.all[id].style.backgroundColor=farbe;
else
if (document.getElementById)
document.getElementById(id).style.backgroundColor=farbe;
else
//if (document.layers)
// document.layers[id].bgColor=farbe;
void(0);
}
//–>
Body:
TEST
Unternehmensprofil</a></font></td></tr>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚home.html‘;“ onmouseover=„chgBgCol(‚home‘,’#888888’);“ onmouseout=„chgBgCol(‚home‘,’#BBBBBB’);“ height=„16“ id=„home“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚home.html‘,‚rechts‘)“ style=„text-decoration: none“>Home</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚unternehmen.html‘;“ onmouseover=„chgBgCol(‚unternehmen‘,’#888888’);“ onmouseout=„chgBgCol(‚unternehmen‘,’#BBBBBB’);“ height=„16“ id =„unternehmen“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚unternehmen.html‘,‚rechts‘)“ style=„text-decoration: none“>Unternehmen</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚standort.html‘;“ onmouseover=„chgBgCol(‚standort‘,’#888888’);“ onmouseout=„chgBgCol(‚standort‘,’#BBBBBB’);“ height=„16“ id =„standort“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚standort.html‘,‚rechts‘)“ style=„text-decoration: none“>Standort</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚partner.html‘;“ onmouseover=„chgBgCol(‚partner‘,’#888888’);“ onmouseout=„chgBgCol(‚partner‘,’#BBBBBB’);“ height=„16“ id =„partner“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚partner.html‘,‚rechts‘)“ style=„text-decoration: none“>:stuck_out_tongue_winking_eye:artner</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚agbs.html‘;“ onmouseover=„chgBgCol(‚agbs‘,’#888888’);“ onmouseout=„chgBgCol(‚agbs‘,’#BBBBBB’);“ height=„16“ id =„agbs“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚agbs.html‘,‚rechts‘)“ style=„text-decoration: none“>AGB’s</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚referenzen.html‘;“ onmouseover=„chgBgCol(‚referenzen‘,’#888888’);“ onmouseout=„chgBgCol(‚referenzen‘,’#BBBBBB’);“ height=„16“ id =„referenzen“> <font face=Arial size=-1>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚referenzen.html‘,‚rechts‘)“ style=„text-decoration: none“>Referenzen</a></font></td> </tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚jobs.html‘;“ onmouseover=„chgBgCol(‚jobs‘,’#888888’);“ onmouseout=„chgBgCol(‚jobs‘,’#BBBBBB’);“ height=„16“ id =„jobs“> <font face=Arial size=-1>
<a href="javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚jobs.html‘,‚rechts‘)"style=„text-decoration: none“>Jobs</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚fachkräfte.html‘;“ onmouseover=„chgBgCol(‚fachkräfte‘,’#888888’);“ onmouseout=„chgBgCol(‚fachkräfte‘,’#BBBBBB’);“ height=„16“ id =„fachkräfte“>
<a href="javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚fachkräfte.html‘,‚rechts‘)"style=„text-decoration: none“><font face=Arial size=-1 > Fachkräfte</a></font></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚ausbildung.html‘;“ onmouseover=„chgBgCol(‚ausbildung‘,’#888888’);“ onmouseout=„chgBgCol(‚ausbildung‘,’#BBBBBB’);“ height=„16“ id =„ausbildung“> <font face=Arial size=-1> </font>
<a href="javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚ausbildung.html‘,‚rechts‘)"style=„text-decoration: none“><font face=Arial size=-1 >Ausbildung</font></a></td>
</tr>
<td colspan=„2“><img src="" width=„1“ height=„2“ alt="" border=„0“></td>
<tr bgcolor="#BBBBBB">
<td onclick=„window.location.href=‚praktikum.html‘;“ onmouseover=„chgBgCol(‚praktikum‘,’#888888’);“ onmouseout=„chgBgCol(‚praktikum‘,’#BBBBBB’);“ height=„16“ id =„praktikum“> <font face=Arial size=-1> </font>
<a href=„javascript:ZweiFrames(‚navi_erweitert1.html‘,‚links‘,‚praktikum.html‘,‚rechts‘)„style=„text-decoration: none“><font face=Arial size=-1 >:stuck_out_tongue_winking_eye:raktikum</font></a></td>
</tr>
<tr>
<td colspan=„2“><img src=„pixel.gif“ width=„1“ height=„2“ alt=““ border=„0“></td>
</tr>
</tr>
<tr>
<td width=„12“><img src=„pixel.gif“ width=„1“ height=„4“ alt="" border=„0“></td>
</tr>
</table>
Das Ganze funktioniert soweit super!
Nur ich möchte jetzt:
- das beim Klicken auf einen Menüpunkt die Hintergrundfarbe von diesem Punkt von hellgrau in dunkelgrau wechselt, so das der User sieht welche Seite gerade angezeigt wird und
2.das auch beim Klicken auf das Feld (td), nicht nur auf die Schrift, die Verlinkung funktioniert…
Geht das irgendwie??
MfG Sabine L.


