183 users online (0 members and 183 guests)  


  Results 1 to 4 of 4

Related

  1. Replies: 2
  2. create a drop down menu box in cgi    Forum: CGI Perl Forum
    Replies: 2
  3. javascript drop down menus prob    Forum: Website Scripts Forum
    Replies: 11
  4. Jump Menu covers drop down menu    Forum: HTML Forum
    Replies: 1
  5. Drop down menu    Forum: HTML Forum
    Replies: 6
  1. #1
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156

    drop down menu prob.

    i used the drop down menu tool in this site to make 3 drop down menus. here's how the source code looks like:

    <form name="jump">
    Videos:
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">
    <option value="http://hk.geocities.com/mufcsq_downloads_videos_classic/class.html">Classic</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_videos_premiereship/premiere.html">Premiereship</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_videos_cups/cups.html">Cups</option>
    </select>
    </form>
    <form name="jump1">
    Wallpapers:
    <select name="menu1" onChange="location=document.jump1.menu1.options[document.jump.menu.selectedIndex].value;" value="GO">
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/badge.html">Badges</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/barthez.html">Barthez</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/beckham.html">Beckham</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/blanc.html">Blanc</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/brown.html">Brown</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/butt.html">Butt</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/duos.html">Duos</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/ferndinand.html">Ferndinand</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/forlan.html">Giggs</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/kenae.html">Keane</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/neville.html">Neville Bro.</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/nistelrooy.html">Nistelrooy</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/old.html">Old Boys</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/scholes.html">Scholes</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/solskjaer.html">Solskjaer</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_wallpapers/team.html">Veron</option>
    </select>
    </form>
    <form name="jump2">
    Misc:
    <select name="menu2" onChange="location=document.jump2.menu2.options[document.jump.menu.selectedIndex].value;" value="GO">
    <option value="http://hk.geocities.com/mufcsq_downloads_others/icons.html">Icons</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_others/screensavers.html">Screensavers</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_others/skins.html">Skins</option>
    <option value="http://hk.geocities.com/mufcsq_downloads_others/themes.html">Themes</option>
    </select>
    </form>
    i modified the jump part and the menu name part. but it still doesn' t work. what happens is that when i choose beckham, it always goes to badge. or when i choose screensavers, it goes to icons. the first drop down worked fine, but the last two doesn't. plz help!

  2. #2
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    here's the actual page:

    http://hk.geocities.com/mufcsq_downloads_wallpapers/badge.html

  3. #3
    QuietDean's Avatar
    Administrator

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

    Code:
    onChange="location=document.jump2.menu2.options[document.jump.menu.selectedIndex].value;"
    needs to be
    Code:
    onChange="location=document.jump2.menu2.options[document.jump2.menu2.selectedIndex].value;"
    Same for the others. match the value of the options array to the form, otherwise they are all reading the wrong form.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  4. #4
    geek987's Avatar
    Man Utd Fans

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    156
    great!



Tags for this Thread