Select auswahl und gleich weiter leiten
Select auswahl und gleich weiter leiten
Hallo ich habe in html ein select feld.
<select name="klasse">
<option selected="selected">Bitte wälen Sie!</option>
<option value="NB">NB</option>
<option value="AB">AB</option>
<option value="AB">S1 -> Kommt noch!</option>
<option value="AB">S2 -> Kommt noch!</option>
<option value="AB">S3 -> Kommt noch!</option>
<option value="AB">S4 -> Kommt noch!</option>
<option value="AB">S5 -> Kommt noch!</option>
<option value="AB">S6 -> Kommt noch!</option>
<option value="AB">S7 -> Kommt noch!</option>
<option value="AB">S8 -> Kommt noch!</option>
<option value="AB">S9 -> Kommt noch!</option>
<option value="AB">S10 -> Kommt noch!</option>
<option value="AB">S11 -> Kommt noch!</option>
<option value="AB">S12 -> Kommt noch!</option>
<option value="AB">S13 -> Kommt noch!</option>
<option value="AB">LB -> Kommt noch!</option>
<option value="AB">GB -> Kommt noch!</option>
</select>
wenn jemand nb wählt soll er sofort mit der seite nb.html verbunden werden. wenn ab dann mit ab.html und die seiten sollen im Frame mainFrame geöffnet werden wer kann mir helfen?
<select name="klasse">
<option selected="selected">Bitte wälen Sie!</option>
<option value="NB">NB</option>
<option value="AB">AB</option>
<option value="AB">S1 -> Kommt noch!</option>
<option value="AB">S2 -> Kommt noch!</option>
<option value="AB">S3 -> Kommt noch!</option>
<option value="AB">S4 -> Kommt noch!</option>
<option value="AB">S5 -> Kommt noch!</option>
<option value="AB">S6 -> Kommt noch!</option>
<option value="AB">S7 -> Kommt noch!</option>
<option value="AB">S8 -> Kommt noch!</option>
<option value="AB">S9 -> Kommt noch!</option>
<option value="AB">S10 -> Kommt noch!</option>
<option value="AB">S11 -> Kommt noch!</option>
<option value="AB">S12 -> Kommt noch!</option>
<option value="AB">S13 -> Kommt noch!</option>
<option value="AB">LB -> Kommt noch!</option>
<option value="AB">GB -> Kommt noch!</option>
</select>
wenn jemand nb wählt soll er sofort mit der seite nb.html verbunden werden. wenn ab dann mit ab.html und die seiten sollen im Frame mainFrame geöffnet werden wer kann mir helfen?
Please also mark the comments that contributed to the solution of the article
Content-Key: 52911
Url: https://administrator.de/contentid/52911
Printed on: April 25, 2024 at 07:04 o'clock
3 Comments
Latest comment
G' Abend,
also wie's geht kann ich dir zeigen. Du meinst sowas wie bei Bsp. 2?!
http://home.hetnet.nl/~hans-kuipers4/html/combobox.htm
Hier mal ein Codebeispiel (js):
und den HTML - Teil:
Habs leider nicht getestet. Aber das machst du ja dann.....
Grüße
Dani
also wie's geht kann ich dir zeigen. Du meinst sowas wie bei Bsp. 2?!
http://home.hetnet.nl/~hans-kuipers4/html/combobox.htm
Hier mal ein Codebeispiel (js):
....
<SCRIPT type="text/javascript" >
function changeit()
{
document.getElementById("cal2").src =document.getElementById("box2").options[document.getElementById("box2").selectedIndex].value+'.htm'
document.getElementById("box2").selectedIndex ="2"
}
function upd() {
document.getElementById("tar").value = document.getElementById("box1").options[document.getElementById("box1").selectedIndex].value;
document.getElementById("box1").value=''
}
</SCRIPT>
.....
....
<SELECT style="width:140;" id="box2" onchange="changeit()" >
<OPTION value="dummy/listdemo0" class="0">Example 0
<OPTION value="dummy/listdemo1" class="1">Example 1
<OPTION value="dummy/listdemo2" class="2" SELECTED>*** Pick One ***
<OPTION value="dummy/listdemo3" class="3">Example 3
</SELECT>
....
Grüße
Dani