Ben: Link der gerade offenen Seite in Navigation "aktiv"

Beitrag lesen

Hallo,

erst mal vielen Dank für die antworten - at steckl.

Ok - ich habe das jetzt statisch in jede geöffnete html Datei reingeschreiben, hier die zwei Dateien:

INDEX SEITE:

------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>
<head>

<title>:link, :visited, :focus, :hover, :active</title>

<style type="text/css">
a:link { font-weight:bold; color:blue; text-decoration:none; }
a:visited { font-weight:bold; color:blue; text-decoration:none; }

a:hover { font-weight:bold; color:green; text-decoration:none; }
a:active { font-weight:bold; color:red; text-decoration:none; }

h1:hover { background-color:green; }
h1:active { background-color:#red; }}
</style>

</head>

<body>

<h1>Navigation</h1>
<p>
<a href="../index.htm/" class="active">Index</a><br>
<a href="../videos.htm/">Videos</a><br>
<a href="../meineseite.htm/">Meine Seite</a><br>
<a href="../suche.htm/">Suche</a>
</p>

</body>

</html>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

<html>
<head>

<title>:link, :visited, :focus, :hover, :active</title>

<style type="text/css">
a:link { font-weight:bold; color:blue; text-decoration:none; }
a:visited { font-weight:bold; color:blue; text-decoration:none; }

a:hover { font-weight:bold; color:green; text-decoration:none; }
a:active { font-weight:bold; color:red; text-decoration:underline; }

h1:hover { background-color:green; }
h1:active { background-color:#red; }
</style>

</head>

<body>

<h1>Navigation</h1>
<p>
<a href="../index.htm/">Index</a><br>
<a href="../videos.htm/"  class="active">Videos</a><br>
<a href="../meineseite.htm/">Meine Seite</a><br>
<a href="../suche.htm/">Suche</a>
</p>

</body>

</html>

Was mache ich falsch?

Vielen Dank
BEN