Hallo Oliver,
Hier nun der Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function Go(x) {
if(x == "nothing") {
document.forms[0].reset();
document.forms[0].elements[0].blur();
return;
}
else if(x == "end")
top.location.href = parent.frames[1].location;
else {
parent.frames[1].location.href = x;
Hier denke ich liegt der ganze Hund begraben (zusammen mit den anderen von mir markierten Zeilen).
stattdessen könntest Du schreiben:
var xarr=x.split("|");
ZweiFrames(xarr[0], "toprechts", xarr[1], "content");
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
function ZweiFrames(URI1,F1,URI2,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.location.href = URI1;
Frame2.location.href = URI2;
}
function ZweiFramesBack(F1,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.history.back();
if (!window.opera) window.setTimeout("Frame2.history.back()",10);
}
function ZweiFramesForward(F1,F2) {
Frame1=eval("parent."+F1);
Frame2=eval("parent."+F2);
Frame1.history.forward();
if (!window.opera) window.setTimeout("Frame2.history.forward()",10);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<form action=""><select size=1 name="Auswahl"
onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)"
style="width:250px; background-color:#FFFFE0; font-size:9pt; font-family:Arial,sans-serif;"
width="250">
<option value="nothing">[ bitte ausw‰hlen! ]</option>
<option value="nothing">------------------------</option>
<option value="javascript:ZweiFrames('test2_rechts','toprechts','testcontent2','content')">12112121212</option>
[Markierung] hier könntest Du schreiben (mit allen anderen Änderungen zu implementieren): <option value="ZweiFrames('test2_rechts'|'testcontent2'">12112121212</option>
<option value="javascript:ZweiFrames('test3_rechts','toprechts','testcontent3','content')">23423423423</option>
[Markierung] hier könntest Du schreiben (mit allen anderen Änderungen zu implementieren): <option value="ZweiFrames('test3_rechts'|'testcontent3'">23423423423</option>
<option value="nothing">------------------------</option>
<option value="end">Beenden
</select></form>
</body>
</html>
leider kann ich die URL nicht geben da Intranet.
Ist OK, Sample-Code reicht ja.
Bis denndann
Michael N.