Hallo,
erste Zeile: Auswahl des contents per onChange
zweite Zeile: Content der gewaehlten site.php
<title>p314.php </title>
<script language="JavaScript" type="text/javascript">
<!--
function wechsel() {
var auswahl, seite;
auswahl=document.liste.wahl.selectedIndex;
seite=document.liste.wahl.options[auswahl].value;
if (seite=="nichts") {
document.liste.reset();
return false;
}
else {
parent.main.location.href=seite;
}
}
//-->
</script>
</head><body><table border=0 CELLSPACING=0 CELLPADDING=0>
<tr><td valign="top">
<form name="liste" action="p314.php" method="post" target="">
<select name="wahl" onChange="wechsel()" size="1">
<option selected="selected" value="#">Kapitel waehlen</option>
<option value="p314.php?zeigen=p314_012">Substanz-Dualismus</option>
<input type="submit">
</select></form> </td></tr>
<tr> <td valign="top">
<?php
if($go=='') $zeigen="default";
include("$go.htm");
?>
</td></tr> </table>
Warum funktioniert das nicht?
Grusz,
Mike