Hier nochmals zum Verständis. Anstatt reinen Ausgabetext sollte dort iFrames eingebunden werden: z.B. Profil.html
Hier der abgeänderte Code:
Vielen Dank für eure Bemühungen.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" language="javascript">
function auswahlschuljahr()
{
for (loop = window.document.getElementById("auswahl_fach").options.length-1; loop > 0; loop--)
{
window.document.getElementById("auswahl_fach").options[loop] = null;
}
for (loop = 0; loop < optionenliste[window.document.getElementById("auswahl_schuljahr").selectedIndex].length; loop++)
{
window.document.getElementById("auswahl_fach").options[loop] = new Option(optionenliste[window.document.getElementById("auswahl_schuljahr").selectedIndex][loop]);
}
window.getElementById.auswahl_fach.selectedIndex = 0;
}
function auswahlfach()
{
document.getElementById("ausgabe").innerHTML = text_container[window.document.getElementById("auswahl_schuljahr").selectedIndex][window.document.getElementById("auswahl_fach").selectedIndex];
}
function set_orig()
{
window.getElementById.auswahl_schuljahr.selectedIndex = 0;
window.getElementById.auswahl_fach.selectedIndex = 0;
}
window.onload = set_orig
var anzahl_kategorie = 7;
var optionenliste = new Array(anzahl_kategorie);
optionenliste[0] = new Array("-- Auswahl --");
optionenliste[1] = new Array("-- Auswahl --",
"Deutsch",
"Mathematik",
"Englisch");
optionenliste[2] = new Array("-- Auswahl --",
"Chemie",
"Physik");
optionenliste[3] = new Array("-- Auswahl --",
"Deutsch",
"Geographie");
var text_container = new Array(anzahl_kategorie);
text_container[0] = new Array("Text 0");
text_container[1] = new Array("-- Auswahl --",
"Iframe Profil.html für Deutsch im 7. Schuljahr",
"Iframe Profil.html für Mathematik im 7. Schuljahr",
"Iframe Profil.html für Englisch im 7. Schuljahr");
text_container[2] = new Array("-- Auswahl --",
"Iframe Profil.html für Chemie im 8. Schuljahr",
"Iframe Profil.html für Physik im 8. Schuljahr");
text_container[3] = new Array("-- Auswahl --",
"Iframe Profil.html für Deutsch im 9. Schuljahr",
"Iframe Profil.html für Geographie im 9. Schuljahr");
// -->
</script>
</head>
<body>
</head>
<table width="1000" border="0" cellspacing="0" cellpadding="5">
<tr valign="top">
<th scope="col"><div align="left">Bitte wähle das gewünschte Schuljahr aus:</div></th>
<th width="200" rowspan="6" scope="col"> </th>
<th width="400" height="40" rowspan="6" scope="col"><div id="ausgabe"></div></th>
</tr>
<tr valign="top">
<th scope="col"><div align="left">
<select name="auswahl_" id="auswahl_schuljahr" onchange="auswahlschuljahr(); ">
<option>-- Auswahl --</option>
<option>7. Schuljahr</option>
<option>8. Schuljahr</option>
<option>9. Schuljahr</option>
</select>
</div></th>
</tr>
<tr valign="top">
<th scope="col"> </th>
</tr>
<tr valign="top">
<th scope="col"><div align="left">Bitte wähle das gewünschte Fach aus:</div></th>
</tr>
<tr valign="top">
<th scope="col"><form>
<div align="left">
<select id="auswahl_fach" onchange="auswahlfach();">
<option>-- Auswahl --</option>
<option></option>
<option></option>
</select>
</div>
</form>
<div align="left"><br />
</div></th>
</tr>
</table>
<p> </p>
</body>
</html>