Hi @ all,
habe ein problem, bei dem ich keinen Ansatz finde. Schon mal vorrausgesagt : Dieses Menue funktioniert im Internet Explorer sehr gut.
Ich habe in meiner Kopfleiste 3 Select Felder. Das erste öffnet links im selben Fenster und wird gleichzeitig gleich wieder in den Normalzustand gesetzt. Die nächsten 2 Select Felder öffnen den Link in einem neuen Fenster und werden ebenfalls wieder zurückgesetzt.
Hier das Javascript:
Und hier die select Felder :
Wie gesagt, im IE funktioniert es ... im Firefox passiert jedoch gar nix.
Hat jemand schon mal dasselbe Problem gehabt ?
Bitte helft mir ein bischen auf die Sprünge !
Danke im vorraus
crucho
habe ein problem, bei dem ich keinen Ansatz finde. Schon mal vorrausgesagt : Dieses Menue funktioniert im Internet Explorer sehr gut.
Ich habe in meiner Kopfleiste 3 Select Felder. Das erste öffnet links im selben Fenster und wird gleichzeitig gleich wieder in den Normalzustand gesetzt. Die nächsten 2 Select Felder öffnen den Link in einem neuen Fenster und werden ebenfalls wieder zurückgesetzt.
Hier das Javascript:
Code:
function godrei()
{
index = document.link.drei.selectedIndex;
if ( index > 1 )
{
goto = document.link.drei.options[document.link.drei.selectedIndex].value
window.open(goto, 'Name','directories=yes,location=yes,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=640');
document.link.drei.selectedIndex = 0;
document.link.zwei.selectedIndex = 0;
document.link.eins.selectedIndex = 0;
}
}
function gozwei()
{
index = document.link.zwei.selectedIndex;
if ( index > 1 )
{
goto = document.link.zwei.options[document.link.zwei.selectedIndex].value
window.open(goto, 'Name','directories=yes,location=yes,toolbar=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=800,height=640');
document.link.drei.selectedIndex = 0;
document.link.zwei.selectedIndex = 0;
document.link.eins.selectedIndex = 0;
}
}
function goeins()
{
index = document.link.eins.selectedIndex;
if ( index > 1 )
{
goto = document.link.eins.options[document.link.eins.selectedIndex].value
location = document.link.eins.options[document.link.eins.selectedIndex].value
document.link.drei.selectedIndex = 0;
document.link.zwei.selectedIndex = 0;
document.link.eins.selectedIndex = 0;
}
}
Und hier die select Felder :
Code:
<form name="link">
<select name="eins" class="auswahl" size="1" style="width:155px;" onChange="goeins(this.link);">
<option value="#" selected><font>Tolle Links</font></option>
<option value="#"><font>-------------------------------</font></option>
<option value="http://MeineHomepageHome"><font>Home</font></option>
<option value="http://MeineHomepageEmail"><font>Email</font></option>
<option value="http://MeineHomepageStatus"><font>Status</font></option>
<option value="http://MeineHomepageInfo"><font>Info</font></option>
<option value="http://MeineHomepageBilder"><font>Bilder</font></option>
</select>
<select name="zwei" class="auswahl" size="1" style="width:155px;" onChange="gozwei();">
<option value="#" selected><font>Tolle Links</font></option>
<option value="#"><font>-------------------------------</font></option>
<option value="http://www.google.de"><font>Google</font></option>
<option value="http://www.google1.de"><font>Google1</font></option>
<option value="http://www.google2.de"><font>Google2</font></option>
</select>
<select name="drei" class="auswahl" size="1" style="width:180px;" onChange="godrei();">
<option value="#" selected><font>Tolle Links</font>
<option value="#"><font>--------------------------------------</font>
<option value="http://www.irgendwohin.de"><font>irgendwohin</font></option>
<option value="http://www.irgendwohin1.de"><font>irgendwohin1</font></option>
<option value="http://www.irgendwohin2.de"><font>irgendwohin2</font></option>
</select>
</form>
Wie gesagt, im IE funktioniert es ... im Firefox passiert jedoch gar nix.
Hat jemand schon mal dasselbe Problem gehabt ?
Bitte helft mir ein bischen auf die Sprünge !
Danke im vorraus
crucho