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"> </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>
.........................................................................