Mit diesem Script kann eine URL aus einer Select-Box an einen beliebigen Frame übergeben werden. Der Inhalt des beliebigen Frames ändert sich also und nicht der des Frames mit der Selectbox.
Das Script sieht so aus:
<script language="JavaScript">
<!--
function go(form) {
var myselecter=form.select1.selectedIndex
window.open(form.select1.options[myselecter].value, target="main");
}
//-->
</script>
<script language="JavaScript">
<!--
document.write('<form name="selecter"><select name="select1" size=1>');
document.write('<option value=none>Wähle eine Kategorie ...');
document.write('<option value=none>-------------------------');
document.write('<option value="blond.html">Blondinen');
document.write('<option value="aethiop.html">Äthiopier');
document.write('<option value="abstrackt.html">Abstrackt');
document.write('<option value="oestr.html">Österreicher');
document.write('<option value="bilder.html">Cartoons');
document.write('<option value="sonst.html">Sonstige');
document.write('</select>');
document.write('<br>');
document.write('<INPUT TYPE="button" VALUE="Go" onclick="go(this.form)">');
document.write('</form>');
//-->
</script>
Statt target="main" muss der Name des Zielframes angegeben werden.
Das Script sieht so aus:
<script language="JavaScript">
<!--
function go(form) {
var myselecter=form.select1.selectedIndex
window.open(form.select1.options[myselecter].value, target="main");
}
//-->
</script>
<script language="JavaScript">
<!--
document.write('<form name="selecter"><select name="select1" size=1>');
document.write('<option value=none>Wähle eine Kategorie ...');
document.write('<option value=none>-------------------------');
document.write('<option value="blond.html">Blondinen');
document.write('<option value="aethiop.html">Äthiopier');
document.write('<option value="abstrackt.html">Abstrackt');
document.write('<option value="oestr.html">Österreicher');
document.write('<option value="bilder.html">Cartoons');
document.write('<option value="sonst.html">Sonstige');
document.write('</select>');
document.write('<br>');
document.write('<INPUT TYPE="button" VALUE="Go" onclick="go(this.form)">');
document.write('</form>');
//-->
</script>
Statt target="main" muss der Name des Zielframes angegeben werden.