By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,288 Members | 1,695 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,288 IT Pros & Developers. It's quick & easy.

drop down menu exchanges 2 frames

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Yve wrote:

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
Jul 20 '05 #2

P: n/a
Yve
Juliette <"jrf[spamblock]"@jokeaday.net> wrote in message news:<3F***************@jokeaday.net>...
Yve wrote:

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


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>

.................................................. .......................
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.