Jump to content

HTML help needed


Recommended Posts

i need help with having links open in a frame

http://www.thebasketballsim.com/

i need to have the links in the "team navigation" drop down box open in the frame ("I1") instead of taking over the whole page. this is the code for the drop-down box:

<form method="POST" action="--WEBBOT-SELF--">

				<!--webbot bot="SaveResults" U-File="fpweb:///_private/form_results.csv" S-Format="TEXT/CSV" S-Label-Fields="TRUE" -->

				<p align="center">

				<!--webbot bot="Validation" s-display-name="Select" b-value-required="TRUE" --><select name="Select" size="1" 


				onchange="window.location.href=this.value;"> 


				<option selected>TBS League</option>


				<option value="http://www.thebasketballsim.com/leaguefiles/ATLHawks_Info.html">

				Atlanta Hawks

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/BOSCeltics_Info.html">

				Boston Celtics

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/CHABobcats_Info.html">

				Charlotte Bobcats

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/CHIBulls_Info.html">

				Chicago Bulls

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/CLECavaliers_Info.html">

				Cleveland Cavaliers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/DALMavericks_Info.html">

				Dallas Mavericks

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/DENNuggets_Info.html">

				Denver Nuggets

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/DETPistons_Info.html">

				Detroit Pistons

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/OAKWarriors_Info.html">

				Golden State Warriors

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/HOURockets_Info.html">

				Houston Rockets

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/INDPacers_Info.html">

				Indiana Pacers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/LARClippers_Info.html">

				Los Angeles Clippers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/LAWLakers_Info.html">

				Los Angeles Lakers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/MEMGrizzlies_Info.html">

				Memphis Grizzlies

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/MIAHeat_Info.html">

				Miami Heat

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/MILBucks_Info.html">

				Milwaukee Bucks

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/MINTimberwolves_Info.html">

				Minnesota Timberwolves

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/NJNets_Info.html">

				New Jersey Nets

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/NOKHornets_Info.html">

				New Orleans Hornets

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/NYKnicks_Info.html">

				New York Knicks

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/SEAThunder_Info.html">

				Oklahoma City Thunder

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/ORLMagic_Info.html">

				Orlando Magic

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/PHI76ers_Info.html">

				Philadelphia 76ers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/PHOSuns_Info.html">

				Phoenix Suns

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/PORTrailblazers_Info.html">

				Portland Blazers

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/SACKings_Info.html">

				Sacramento Kings

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/SASpurs_Info.html">

				San Antonio Spurs

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/TORRaptors_Info.html">

				Toronto Raptors

				</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/UTAJazz_Info.html">

				Utah Jazz</option>

				<option value="http://www.thebasketballsim.com/leaguefiles/WASWizards_Info.html">

				Washington Wizards

				</option>


			</select></li>

		</ul>


			</form>

anyone know how to do this? thanks.

Edited by Loonister
Link to comment
Share on other sites

Add this into the head section of your code:

<script language="javascript" type="text/javascript">
function jump(form) {
var myindex=form.menu.selectedIndex
if (form.menu.options[myindex].value != "0")
{
window.open(form.menu.options[myindex].value,
target="I1");
}
}
//-->
</script>[/code] Then replace the form on your page with this:
[code]<form name="menu" action=URI>
<select name="menu" onchange="jump(this.form)">
<option selected="selected">TBS League</option>
<option value="http://www.thebasketballsim.com/leaguefiles/ATLHawks_Info.html">Atlanta Hawks</option>
<option value="http://www.thebasketballsim.com/leaguefiles/BOSCeltics_Info.html">Boston Celtics</option>
<option value="http://www.thebasketballsim.com/leaguefiles/CHABobcats_Info.html">Charlotte Bobcats</option>
</select>
</form>

Adding the rest of the teams, of course.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. To learn more, see our Privacy Policy