Hallo,
mit der Verweisliste als Auswahlliste habe ich ein wenig herumexperimentiert - und auch mehrere Verweislisten eingebaut. Was bei zweien klappt, funktioniert beim Driten plötzlich nicht mehr; nämlich das 'automatische' Zurücksetzen auf den ersten Ausgangswert. Wie ist das zu erklären???
Hier mein Source Code:
Definition im 'Header'
----------------------
</style>
<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;
document.forms[0].reset();
document.forms[0].elements[0].blur();
}
}
function Go2(x) {
if(x == "nothing") {
document.forms[1].reset();
document.forms[1].elements[0].blur();
return;
}
else if(x == "end")
top.location.href = parent.frames[1].location;
else {
parent.frames[1].location.href = x;
document.forms[1].reset();
document.forms[1].elements[0].blur();
}
}
function Go3(x) {
if(x == "nothing") {
document.forms[1].reset();
document.forms[1].elements[0].blur();
return;
}
else if(x == "end")
top.location.href = parent.frames[1].location;
else {
parent.frames[1].location.href = x;
document.forms[1].reset();
document.forms[1].elements[0].blur();
}
}
//-->
</script>
Definition im 'Body'
--------------------
<form action=>
<SELECT size="1" name="Location"
onchange="Go(this.form.Location.options[this.form.Location.options.selectedIndex].value)"
style="width: 100px; background-color: #FFB76F; font-weight:bold;"
width="100" onmouseover="window.status='Der Weg zu uns'; return true">
<OPTION value="nothing" style="color:blue">Location</OPTION>
<OPTION value="anfahrt/anfahrt.html">Anfahrt</OPTION>
<OPTION value="location.html">Spiellokale</OPTION>
</SELECT>
</form>
<P>
<A onmouseover="window.status='Unser Vorstand'; return true"
href="vips.html" target="RechtesFenster"><FONT size="2">VIPs</FONT></A>
</P>
<form action=>
<SELECT size="1" name="Jugend"
onchange="Go2(this.form.Jugend.options[this.form.Jugend.options.selectedIndex].value)"
style="width: 100px; background-color: #FFB76F; font-weight:bold;"
width="100" onmouseover="window.status='Unsere Jugend'; return true">
<OPTION value="nothing" style="color:blue">Kids</OPTION>
<OPTION value="jugend-info.html">Info</OPTION>
<OPTION value="jugendmannschaften.html">Übersicht</OPTION>
<OPTION value="Saison0304-Jugend1/jugend1-03-frame.html">1.Mannschaft</OPTION>
<OPTION value="Saison0304-Jugend2/jugend2-03-frame.html">2.Mannschaft</OPTION>
<OPTION value="Saison0304-Jugend34/jugend3-03-frame.html">3.Mannschaft</OPTION>
<OPTION value="Saison0304-Jugend34/jugend4-03-frame.html">4.Mannschaft</OPTION>
</SELECT>
</form>
<form action=>
<SELECT size="1" name="Mannschaft"
onchange="Go3(this.form.Mannschaft.options[this.form.Mannschaft.options.selectedIndex].value)"
style="width: 100px; background-color: #FFB76F; font-weight:bold;"
width="100" onmouseover="window.status='Unsere Mannschaften'; return true">
<OPTION value="nothing" style="color:blue">Teams</OPTION>
<OPTION value="mannschaften.html">Übersicht</OPTION>
<OPTION value="Saison0304-Mannschaft1/mannschaft1-03-frame.html">1.Mannschaft</OPTION>
<OPTION value="Saison0304-Mannschaft2/mannschaft2-03-frame.html">2.Mannschaft</OPTION>
<OPTION value="Saison0304-Mannschaft3/mannschaft3-03-frame.html">3.Mannschaft</OPTION>
<OPTION value="Saison0304-Mannschaft4/mannschaft4-03-frame.html">4.Mannschaft</OPTION>
</SELECT>
</form>
Anschaulicher ist es vielleicht unter
http://www.sboberberg.de/vereine/svbergneustadt_derschlag/index.htm
Vielen Dank für Eure Hilfe
:o) Frank