For the script:
<script language="JavaScript">
function pullPage(){
var arrayLength=document.teamSelectionF.teamSelectionS .length;
var pageNav = new Array(arrayLength);
var
gotoNum=document.teamSelectionF.teamSelectionS.opt ions[document.teamSelectionF.teamSelectionS.selectedInd ex].value;
pageNav["null"]="http://www.tandtsports.com";
pageNav["Cougars"]="http://www.tandtsports.com/Cougars.html";
pageNav["Mavericks"]="http://www.tandtsports.com/Mavericks.html";
pageNav["Shortcuts"]="http://www.tandtsports.com/Shortcuts.html";
window.open(pageNav[gotoNum]);
}
</script>
And in the body:
<form name="teamSelectionF">Please Select A team:
<select name="teamSelectionS" size="1"onChange="pullPage()" >
<option value="null" selected>Team_Name</option>
<option value="Cougars">Cougars</option>
<option value="Mavericks">Mavericks</option>
<option value="Shortcuts">Shortcuts</option>
</select>
</form>
The intent is to produce a function whereby all I have to do create a
new pageNav array member that will naturally have an index value the
same as option value. I believe this will make maintaining a team list
much easier with the array usage within the window.open method. I was
working on this a few weeks ago and posted a message based on this
code. It works fine with the most recent IE and Netscape, but someone
emailed me and warned me of potential problem. I guess I deleted that
email so I was wondering if anyone could point out any potential
problems.