vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   I'm adding a drop down box, not working. (https://vborg.vbsupport.ru/showthread.php?t=245797)

JMEWLS` 07-03-2010 09:37 AM

I'm adding a drop down box, not working.
 
Put that code into the header include. It still doesn't work though, am I putting the script into the right template?

Code:


                <script language="JavaScript">
<!--
function goToURL(form)
  {

    var myindex=form.dropdownmenu.selectedIndex
    if(!myindex=="")
      {
        window.location.href=form.dropdownmenu.options[myindex].value;

     
      }
}
//-->
</script>

Made a new template for this drop down box, to put in CMS..

Code:

<form name="NBA Team">
  <select name="dropdownmenu" size=1 onChange="goToURL(this.form)">
    <option selected value=""> NBA Team
      <option value="http://www.nbadimensions.net/forums/atlanta-hawks-forum/"> Atlanta Hawks
        <option value="http://www.nbadimensions.net/forums/boston-celtics-forum/"> Boston Celtics
          <option value="http://www.nbadimensions.net/forums/charlotte-bobcats-forum/"> Charlotte Bobcats
            <option value="http://www.nbadimensions.net/forums/chicago-bulls-forum/"> Chicago Bulls
              <option value="http://www.nbadimensions.net/forums/cleveland-cavaliers-forum/"> Cleveland Cavaliers
                <option value="http://www.nbadimensions.net/forums/dallas-mavericks-forum/"> Dallas Mavericks
                <option value="http://www.nbadimensions.net/forums/denver-nuggets-forum/"> Denver Nuggets
                <option value="http://www.nbadimensions.net/forums/detroit-pistons-forum/"> Detroit Pistons
                <option value="http://www.nbadimensions.net/forums/golden-state-warriors-forum/"> Golden State Warriors
                <option value="http://www.nbadimensions.net/forums/houston-rockets-forum/"> Houston Rockets
                <option value="http://www.nbadimensions.net/forums/indiana-pacers-forum/"> Indiana Pacers
                <option value="http://www.nbadimensions.net/forums/los-angeles-clippers-forum/"> Los Angeles Clippers
                <option value="http://www.nbadimensions.net/forums/los-angeles-lakers-forum/"> Los Angeles Lakers
                <option value="http://www.nbadimensions.net/forums/memphis-grizzlies-forum/"> Memphis Grizzlies
                <option value="http://www.nbadimensions.net/forums/miami-heat-forum/"> Miami Heat
                <option value="http://www.nbadimensions.net/forums/milwaukee-bucks-forum/"> Milwaukee Bucks
                <option value="http://www.nbadimensions.net/forums/minnesota-timberwolves-forum/"> Minnesota Timberwolves
                <option value="http://www.nbadimensions.net/forums/new-jersey-nets-forum/"> New Jersey Nets
                <option value="http://www.nbadimensions.net/forums/new-orleans-hornets-forum/"> New Orleans Hornets
                <option value="http://www.nbadimensions.net/forums/new-york-knicks-forum/"> New York Knicks
                <option value="http://www.nbadimensions.net/forums/oklahoma-city-thunder-forum/"> Oklahoma City Thunder
                <option value="http://www.nbadimensions.net/forums/orlando-magic-forum/"> Orlando Magic
                <option value="http://www.nbadimensions.net/forums/philadelphia-76ers-forum/"> Philadelphia 76ers
                <option value="http://www.nbadimensions.net/forums/phoenix-suns-forum/"> Phoenix Suns
                <option value="http://www.nbadimensions.net/forums/portland-trailblazers-forum/"> Portland Trailblazers
                <option value="http://www.nbadimensions.net/forums/sacramento-kings-forum/"> Sacramento Kings
                <option value="http://www.nbadimensions.net/forums/san-antonio-spurs-forum/"> San Antonio Spurs
                <option value="http://www.nbadimensions.net/forums/toronto-raptors-forum/"> Toronto Raptors
                <option value="http://www.nbadimensions.net/forums/utah-jazz-forum/"> Utah Jazz
                <option value="http://www.nbadimensions.net/forums/washington-wizards-forum/"> Washington Wizards
                <option value="">
                  </select>
</form>
    </div> </vb:each>
    </div>

                </div>
        </div>
</div>



All times are GMT. The time now is 09:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01051 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete