Maria: Zwei Frames Gleichzeitig ändern ohne Funktion

Hallo!

Habe ein Frameset das wie folgt aufgebaut ist:

<frameset rows="*" cols="80,*" frameborder="YES" border="2" framespacing="0">
  <frame name="leftFrame" scrolling="NO" noresize src="fr_menu.html">
  <frameset rows="80,*" frameborder="YES" border="2" framespacing="0">
    <frame name="topFrame" noresize scrolling="NO" src="fr_top_01.html">
    <frame name="mainFrame" src="fr_haupt_01.html">
  </frameset>
</frameset>

Habe in der fr_menu.html einen Link bzw Navigationsleiste. Klicke ich auf den Link so sollen sich die zwei Frames topFrame und mainFrame ändern.
Hierzu habe ich folgende Zeile im fr_menu.html

<a href="javascript:parent.topFrame.location.href='fr_top_02.html',parent.mainFrame.location.href='fr_haupt_02.html'">Link1</a>

Wenn man auf den Link1 klickt so ändern sich die zwei frames, doch leider auch der Frame mit der Navigation. Verstehe nicht warum? Kann mir vielleicht jemand einen Tip bzw. Lösung geben. Will das ganze nicht in einer Funktion wie es ja schon in der Doku von selfhtml geschildert ist.

Danke Maria

  1. Hallo,
    ich wieß nicht ob das klappt, aber versuchsmal so:
     <a href="" onclick="parent.topFrame.location.href='fr_top_02.html',parent.mainFrame.location.href='fr_haupt_02.html'">Link1</a>

    Tschau

    Tobias

    --
    http://www.tobiasklare.de
    fo:) ch:? rl:( br:^ n4:° ie:{ mo:) va:| fl:) ss:| ls:<
    Die Erklärung zum Selfcode findest du hier: http://emmanuel.dammerer.at/selfcode.html
    Einen Decoder für den Selfcode findest du hier: http://peter.in-berlin.de/projekte/selfcode
    1. Hallo Maria, hallo Tobias,

      <a href="" onclick="parent.topFrame.location.href='fr_top_02.html',parent.mainFrame.location.href='fr_haupt_02.html'">Link1</a>

      Der Anweisungstrenner ist das Semikolon, nicht das Komma.

      Grüße
      Andreas

      --
      "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
      (Rich Cook)