Sebastian: Verweisliste als Auswahlliste groesser 11 Zeilen

Ich kriegs einfach nicht hin, dass die Verweisliste nach dem Aufklappen mehr als 11 Zeilen anzeigt, sie soll aber mehr, z.B. 15 Zeilen anzeigen. tja.

<HTML>
<head>

<script language="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[3].location;
 else
  {
   parent.frames[3].location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
  }
}
//-->
</script></head>

<body bgcolor="#1E5F73">

<form>
<select size=1 name="Auswahl"
onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)"
style="width:420px; background-color:#FF0000; font-size:15pt; font-family:Arial,sans-serif,bold;" width=350>

<option value="nothing">Wählen Sie bitte eine Kategorie:
<option value="report.htm">report
<option value="people.htm">people
<option value="architecture.htm">architecture
<option value="specials.htm">special's
<option value="experiments - art.htm">experiments / art
<option value="landscape.htm">landscape
<option value="art-events.htm">art-events
<option value="nudes.htm">nudes
<option value="streetlife.htm">streetlife
<option value="stills.htm">stills
<option value="stills2.htm">stills2
<option value="people & nature.htm">people & nature

</select>

</form>

</BODY></HTML>

  1. Hallo Sebastian,

    Ich kriegs einfach nicht hin, dass die Verweisliste nach dem Aufklappen mehr als 11 Zeilen anzeigt, sie soll aber mehr, z.B. 15 Zeilen anzeigen. tja.

    Bei dir sind es 11, woanders 7 und woanders 20. Wie weit eine "Aufklapp"-Liste aufgeklappt wird, haengt vom verfuegbaren Platz ab und wird so weit ich weiss zumindest unter Windows vom Betriebssystem bestimmt. Also meines Wissens hast du darauf keinen Einfluss, und das ist auch eigentlich gut so, denn woher weisst denn du, wie viel Platz jemand anders unterhalb der Liste hat?

    viele Gruesse
      Stefan Muenz

    1. Hallo Sebastian,

      Ich kriegs einfach nicht hin, dass die Verweisliste nach dem Aufklappen mehr als 11 Zeilen anzeigt, sie soll aber mehr, z.B. 15 Zeilen anzeigen. tja.

      Bei dir sind es 11, woanders 7 und woanders 20. Wie weit eine "Aufklapp"-Liste aufgeklappt wird, haengt vom verfuegbaren Platz ab und wird so weit ich weiss zumindest unter Windows vom Betriebssystem bestimmt. Also meines Wissens hast du darauf keinen Einfluss, und das ist auch eigentlich gut so, denn woher weisst denn du, wie viel Platz jemand anders unterhalb der Liste hat?

      viele Gruesse
        Stefan Muenz

      erstmal Danke!!

      jetzt hats mein schlauer Bruder aber doch noch aufeinmal hingekriegt !!! (ist vielleicht interessant ??):

      Zwei Schritte sind nötig
      1. Das Formular muß einen Namen kriegen, z.B. "test", also:

      <form name="test">

      2.  h i n t e r  dem  Select-Form-Abschnitt muß dann ein Zeiger stehen, wie folgt:

      <script language="JavaScript">
      <!--
      Auswahl1=document.test.Auswahl
      Auswahl1.size=30;
      Auswahl1.columns=30;
      //-->
      </script>

      (wobei die "30" z.B. natürlich nur die maximale Fensterhöhe setzt und die tatsächliche Zeilenanzahl dann von den wählbaren "Options" abhängt):

      (beim Explorer reicht die Zeile mit "Size", bei Nestcape die mit "columns", aber soll ja unter beiden laufen)

      Hier noch mal meine ganze HTML-Seite:

      <HTML>
      <head>

      <script language="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>

      <body>

      <form name="test">

      <select size=1 name="Auswahl"
      onChange="Go(this.form.Auswahl.options[this.form.Auswahl.options.selectedIndex].value)">

      <option value="nothing">Wählen Sie bitte eine Kategorie:
      <option value="report.htm">report
      <option value="people.htm">people
      <option value="architecture.htm">architecture
      <option value="specials.htm">special's
      <option value="experiments - art.htm">experiments / art
      <option value="landscape.htm">landscape
      <option value="art-events.htm">art-events
      <option value="nudes.htm">nudes
      <option value="streetlife.htm">streetlife
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      <option value="stills.htm">stills
      </select>

      </form>

      <script language="JavaScript">
      <!--
      Auswahl1=document.test.Auswahl
      Auswahl1.size=30;
      Auswahl1.columns=30;
      //-->
      </script>

      </BODY></HTML>

      Gruss
      Sebastian v. Roos