drop down menu exchanges 2 frames

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yve

    drop down menu exchanges 2 frames

    Hello,
    I am new here and received good advice many times before by just
    reading - now I would like to ask this question:

    I have got a frameset of 5 frames: navigation and 4 content-frames.
    How can I exchange the content of more than one frame by using an drop
    down menu in the navigation-frame?


    THANK YOU IN ADVANCE.

    Yve.
  • Juliette

    #2
    Re: drop down menu exchanges 2 frames

    Yve wrote:[color=blue]
    >
    > Hello,
    > I am new here and received good advice many times before by just
    > reading - now I would like to ask this question:
    >
    > I have got a frameset of 5 frames: navigation and 4 content-frames.
    > How can I exchange the content of more than one frame by using an drop
    > down menu in the navigation-frame?
    >
    > THANK YOU IN ADVANCE.
    >
    > Yve.[/color]


    Hi Yve,

    Depends a lot on the options for the menu script available, but...
    If you can add a onClick handler for a menuitem, use that to refer to a
    js function.

    In the function redefine the sources for the various target frames.
    Should do the trick.

    Juliette

    Comment

    • Yve

      #3
      Re: drop down menu exchanges 2 frames

      Juliette <"jrf[spamblock]"@jokeaday. net> wrote in message news:<3F08C60A. 3005FECF@jokead ay.net>...[color=blue]
      > Yve wrote:[color=green]
      > >
      > > Hello,
      > > I am new here and received good advice many times before by just
      > > reading - now I would like to ask this question:
      > >
      > > I have got a frameset of 5 frames: navigation and 4 content-frames.
      > > How can I exchange the content of more than one frame by using an drop
      > > down menu in the navigation-frame?
      > >
      > > THANK YOU IN ADVANCE.
      > >
      > > Yve.[/color]
      >
      >
      > Hi Yve,
      >
      > Depends a lot on the options for the menu script available, but...
      > If you can add a onClick handler for a menuitem, use that to refer to a
      > js function.
      >
      > In the function redefine the sources for the various target frames.
      > Should do the trick.
      >
      > Juliette[/color]

      Hi, Juliette,

      Thank you for your message.

      As I am not a coder, I copy/pasted code to solve my problem.

      If I choose e.g.the option "gelb", the content-frame should load
      gelb.html and the thumbs-frame thumb_gelb.html .

      So I don´t know how to tell "gelb" the two targets.

      It would be just great if you could have a look at it to give me a
      clue.

      Thank you very much, greeting from Berlin; Yve.


      ............... ............... ............... ............... ............... ...

      <html>
      <head>
      <title>test_jav ascript</title>
      <meta http-equiv="Content-Type" content="text/html;
      charset=iso-8859-1">
      <script type="text/javascript">
      <!--
      function Go(x,y) {
      if(x == "nothing") {
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
      return;
      }
      else if(x == "end")
      top.location.hr ef = parent.content. location;
      else if(y == "end")
      top.location.hr ef = parent.thumbs.l ocation;
      else {
      parent.content. location.href = x;
      parent.thumbs.l ocation.href = y;
      document.forms[0].reset();
      document.forms[0].elements[0].blur();
      }
      }
      //-->
      </script>

      </head>

      <body bgcolor="#FFFFF F" text="#000000">
      <table width="600" border="0" cellspacing="0" cellpadding="0" >
      <tr>
      <td width="251">
      <form>
      <select size=1 name="bereich1"
      onChange="Go(th is.form.bereich 1.options[this.form.berei ch1.options.sel ectedIndex].value)'
      width="50">
      <option value="nothing" >Bereich1
      <option value="nothing" >. . . . . . . </option>
      <option value="../content/gelb.html">gelb </option>
      <option value="../content/blau.html">blau </option>
      </select>
      </form>
      </td>
      <td width="66">&nbs p;</td>
      <td width="283">
      <form>
      <select size=1 name="bereich2"
      onChange="Go(th is.form.bereich 2.options[this.form.berei ch2.options.sel ectedIndex].value)'
      width="50">
      <option value="nothing" >Bereich2
      <option value="nothing" >. . . . . . . </option>
      <option value="../content/rot.html">rot</option>
      <option value="../content/gruen.html">grü n</option>
      </select>
      </form>
      </td>
      </tr>
      </table>
      </body>
      </html>

      ............... ............... ............... ............... .............

      Comment

      Working...