JMEWLS`
07-03-2010, 09:37 AM
Put that code into the header include. It still doesn't work though, am I putting the script into the right template?
<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..
<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>
<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..
<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>