Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2010, 09:37 AM
JMEWLS` JMEWLS` is offline
 
Join Date: Dec 2007
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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>
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:56 AM.


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.06036 seconds
  • Memory Usage 2,170KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete