drop down menu exchanges 2 frames

Y

Yve

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.
 
J

Juliette

Yve said:
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.


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
 
Y

Yve

Juliette said:
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

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_javascript</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.href = parent.content.location;
else if(y == "end")
top.location.href = parent.thumbs.location;
else {
parent.content.location.href = x;
parent.thumbs.location.href = y;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
//-->
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000">
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="251">
<form>
<select size=1 name="bereich1"
onChange="Go(this.form.bereich1.options[this.form.bereich1.options.selectedIndex].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">&nbsp;</td>
<td width="283">
<form>
<select size=1 name="bereich2"
onChange="Go(this.form.bereich2.options[this.form.bereich2.options.selectedIndex].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>

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,075
Messages
2,570,562
Members
47,197
Latest member
NDTShavonn

Latest Threads

Top