View Single Post
  #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
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01208 seconds
  • Memory Usage 1,791KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)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 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete