Dropdownmenü

  • Hi,

    hab ein dropdownmenü gemacht mit dem ich verschiedene (interne) Seiten verlinken möchte. Aber das klappt nicht. Was ist falsch. Ich kenne mich mit java überhaupt nicht aus. Außerdem wird alles ganz schmal, wenn ich die Auflösung erhöhe, muss ich da mit Prozentwerten bei den Tabellen arbeiten?

    Mein Code:

    <html>
    <head>
    <link rel="stylesheet" type="text/css" href="../roh2.css">

    <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();
    }
    }
    }
    </script


    </head>
    <style>
    body {
    scrollbar-face-color:#ff0000;
    scrollbar-shadow-color:#ffffff;
    scrollbar-highlight-color:#ffffff;
    scrollbar-3dlight-color:#000000;
    scrollbar-darkshadow-color:#000000;
    scrollbar-track-color:#FFFFFF;
    scrollbar-arrow-color:#FFFFFF; }
    </style>
    <body bgcolor="#FFFFFF" text="#FFFFFF" link="#3d4548" vlink="#7d653c" alink="#dec3a9">
    <div style=position:absolute;top:0;left:5>
    <table border="0" cellspacing="0" cellpadding="0" align="top" width="657">
    <tr>
    <td style="background-image:url(../images/bg_arena.gif)" valign="top">
    <p align="right">| impressum | werbung
    | kontakt | home |</p>
    </td>
    <td colspan="13">
    </td>
    <tr>
    <td height="5"></td>
    </tr>
    <tr>
    <td style="background-image:url(../images/bg_arena.gif); padding:10px" width="100%" height="1000" valign="top">


    </p>
    <h1>Service</h1>


    </p>

    <form action=""><select size=1 name="Auswahl"
    onChange="Go(this.form.Auswahl.value)"
    style="width:250px; background-color:#FFFFE0; font-size:12px;" width="180">
    Wählen Sie einen Sockel aus:&nbsp&nbsp&nbsp
    <option value="chipsatz/slot_1.htm"> Slot 1</option>
    <option value="chipsatz/slot_2.htm"> Slot 2</option>
    <option value="chipsatz/slot_a.htm"> Slot A</option>
    <option value="chipsatz/sockel_1.htm" Sockel 1</option>
    </select>
    </form>
    </td>
    </tr>
    </table>
    <div style=position:absolute;top:0;right:-157>
    <iframe src="../frames/rechts.htm" align="right" scrolling="no" width="165" height="1023"
    marginheight="0" marginwidth="0" frameborder="0">
    </iframe>
    </div>
    </body>
    </html>

  • Ja aber daran liegt es nicht. Ich habe jetzt einen anderen Weg gefunden. Hab alles mir iFrame gemacht. Es funktioniert auch alles soweit nur, dass die Fenster im winzigen iFrame bereich angezeigt werden, statt im richtigen Fenster="Inhalt".
    Außerdem habe ich auch einen Download (xls Datei)im Dropdown Menü, aber wenn ich diesen anklicke geht Excel auf, satt dass der Download beginnt. Wie kann ich es machen dass bei einem klick der Download losgeht und nicht die Datei geöffnet werden?

    Bitte dringend um Hilfe!!!

    HTML-Code von der 1. Datei
    <div style=position:absolute;top:150;right:270>
    <iframe src="chipsatz/dropdown.htm" scrolling="no" width="180" height="22" marginheight="0" marginwidth="0" frameborder="0">
    </iframe>
    </div>

    HTML-Code von der 1. Datei
    <body>
    <form>
    <select name="url" style=width="180" onchange="if(form.url.options[form.url.selectedIndex].value!=location.href.substr
    ((location.href.lastIndexOf('/'))+1)&&form.url.options[form.url.selectedIndex].value!='none')location.href=form.url.
    options[form.url.selectedIndex].value">
    <option value="none">Bitte auswählen
    <option value="slot_1.htm"> Slot 1</option>
    <option value="slot_2.htm"> Slot 2</option>
    <option value="slot_a.htm"> Slot A</option>
    <option value="chipsatz.xls"> Als Tabelle downloaden</option>
    </select>
    </form>
    </body>