Astrid: Links werden nicht als aktiv angezeigt

Beitrag lesen

Ich habs geschafft. Vielleicht interessiert ja mal irgendjemand meine Lösung:

<html>
<head>
<title>Beispiel</title>
<style type="text/css">
 a:link { text-decoration:none; color: #000000; }
 a:visited { text-decoration:none; color: #000000; }
 a:active { text-decoration:none; color: #FF0000; }
 a:hover { text-decoration:none; color: #FF0000; }
</style>
<script language="JavaScript">
function farbwechsel(url,frameaktuell)
{
 if (parent.Inhalt.location.href=url) {
  document.getElementById("link1").firstChild.style.color="#000000";
  document.getElementById("link2").firstChild.style.color="#000000";
  frameaktuell.style.color="#FF0000";
 }
}
</script>
</head>

<body>
 <a href="kapitel1.htm" id="link1" target="Inhalt"><font onClick="farbwechsel('kapitel1.htm',this)">Link 1</font></a>
   |  
 <a href="kapitel2.htm" id="link2" target="Inhalt"><font onClick="farbwechsel('kapitel2.htm',this)">Link 2</font></a>
</body>
</html>