39 users online (0 members and 39 guests)  


  Results 1 to 2 of 2

Related

  1. pull down menu issue    Forum: HTML Forum
    Replies: 0
  2. Replies: 0
  3. Pulldown menu blocks my popup menu    Forum: HTML Forum
    Replies: 9
  4. Replies: 3
  5. pull down menu    Forum: HTML Forum
    Replies: 15
  1. #1
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Talking

    Hallo. Welcome to the forum.

    Heres what you need, this first bit goes between your <HEAD> and </HEAD> tags :

    <script language="JavaScript">
    <!--


    function go(what) {
    value = what.options[what.selectedIndex].value;
    if (value == "") return;
    window.location.href = value;
    }

    //--></script>

    And this is the actual pull-down code:

    <form name="form1">

    <select name="linkslist" onChange="go(this)">
    <option value="Page1.htmm">Click for page 1 3659.jpg</option>
    <option value="Page2.html">click for page two</option>
    </select>
    </form>

    You can put as many options in as you like.

    Hope that helps.

    ------------------
    QuietDean-

  2. #2
    WhatupE
    WhatupE's Avatar
    Guest

    Question I need a pull down menu

    I read on a tutorial on this site that you need a program for any type of form, in my case a pull down menu. How would I go about writing a program for a simple pull down menu that has six entries and when you click one of them, it goes straight to the page it refers to? Is there any source code for this out on the web? Thanks to anyone who can help me out



Tags for this Thread