Blöd wie ich bin, habe ich der Chefin meines Freundes angeboten umsonst deren kleine Homepage zu basteln.
Jetzt will ich gerade die Navbar machen und habe total das Problem mit der Verlinkung.
Und zwar habe ich eine Index-Seite mit einem Frameset:
ZitatAlles anzeigen
<frameset frameborder="no" border="0" cols="20%,80%">
<frame name="navigation" src="Navigation.html">
<frame name="main" src="Startseite.html">
</frameset>
<noframes>
Ihr Browser unterstützt keine Frames!
</noframes>
Und in Navigation.html habe ich das drin:
ZitatAlles anzeigen
<style type="text/css">
<!--
.Navlink {COLOR: #FFFFFF; TEXT-DECORATION: none; font-family: arial; font-size: 10pt; font-weight: bold;}
a:link.Navlink {color : #FFFFFF;}
a:visited.Navlink {color : #FFFFFF;}
a:active.Navlink {text-decoration: none;}
a:hover.Navlink {text-decoration: none;}
-->
</style>
<script language = "javascript">
<!--
function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#000000";
elem.style.cursor = 'hand'}
function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}
function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#000000";}
function LmUp(path)
{location.href = path;}
//-->
</script>
<table border="0" width="120" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr><td width="100%">
<table border="0" width="100%" cellspacing="1" cellpadding="1">
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('Startseite.html')" bgcolor="#CC0099"><A target="main" HREF="Startseite.html" Class="navlink"> Home</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('Team.html')" bgcolor="#CC0099"><A target="main" HREF="Team.html" Class="navlink"> Unser Team</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('Optik.html')" bgcolor="#CC0099"><A target="main" HREF="Optik.html" Class="navlink"> Optik</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('HG.html')" bgcolor="#CC0099"><A target="main" HREF="HG.html" Class="navlink"> Hörgeräte</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('Anfahrt.html')" bgcolor="#CC0099"><A target="main" HREF="Anfahrt.html" Class="navlink"> Anfahrt</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#FFFFFF')" onMouseout="LmOut(this, '#CC0099')" onMouseDown="LmDown(this, '#FFFFFF')"
onMouseUp="LmUp('Kontakt.html')" bgcolor="#CC0099"><A target="main" HREF="Kontakt.html" Class="navlink"> Kontakt</a></td></tr>
</table>
</td></tr>
</table>
</td></tr>
</table>
So, und wenn ich jetzt die Index-Seite aufrufe, schaut das auch alles ganz toll aus.
Aber wenn ich dann einen Link der Navbar anklicke (z.B. Anfahrt), dann öffnet sich der sowohl im Navigationsframe als auch im Mainframe.
Was hab ich falsch gemacht?
Habe doch als target=main angegeben *seufz*
Vielleicht kennt sich einer von Euch mit sowas aus?
LG
Mokli