Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Third dropdown menu

I'm sure this Q is in here somewhere, but since you can't serach anymore...

I've found this excellent menue script at Webreference.com, but i need a third menue which is depending on the second (as the second in this script is depending on the first). Here's the 2-dropdown script.



<HTML><HEAD>
<TITLE>WebReference.com</TITLE>
<META name=description content=Cascading Menu generated at SuperTom.Com>
<META content=history name=save>
<STYLE>.saveHistory {
      BEHAVIOR: url(#default#savehistory)}
</STYLE>
<SCRIPT language=JavaScript>
<!--
v=false;
//-->
</SCRIPT>

<SCRIPT language=JavaScript1.1>
<!--
if (typeof(Option)+"" != "undefined") v=true;
//-->
</SCRIPT>

<SCRIPT language=JavaScript>
<!--

if(v){a=new Array(22);}

function getFormNum (formName) {
      var formNum =-1;
      for (i=0;i<document.forms.length;i++){
            tempForm = document.forms[i];
            if (formName == tempForm) {
                  formNum = i;
                  break;
            }
      }
      return formNum;
}

function jmp(form, elt)
// The first parameter is a reference to the form.
{
      if (form != null) {
            with (form.elements[elt]) {
                  if (0 <= selectedIndex)
                        location = options[selectedIndex].value;
            }
      }
}

var catsIndex = -1;
var itemsIndex;

if (v) { // ns 2 fix
function newCat(){
      catsIndex++;
      a[catsIndex] = new Array();
      itemsIndex = 0;
}

function O(txt,url) {
      a[catsIndex][itemsIndex]=new myOptions(txt,url);
      itemsIndex++;
}

function myOptions(text,value){
      this.text = text;
      this.value = value;
}

// fill array here

newCat();   //Fotboll
      O("Herr Allsvenskan","http://www.everysport.se/web_gp/match_list.asp?serie_id=6469");
      O("Herr Superettan","http://www.everysport.se/web_gp/match_list.asp?serie_id=6470");
      O("Herr Division II","http://www.everysport.se/web_gp/match_list.asp?serie_id=743");
      O("Herr Division III","http://www.everysport.se/web_gp/match_list.asp?serie_id=744");
      O("Herr Division IV","http://www.everysport.se/web_gp/match_list.asp?serie_id=745");
      O("Herr Division V","http://www.everysport.se/web_gp/match_list.asp?serie_id=746");
      O("Herr Division VI","http://www.everysport.se/web_gp/match_list.asp?serie_id=747");
      O("Herr Division VII","http://www.everysport.se/web_gp/match_list.asp?serie_id=748");
      O("Herr Division VIII","http://www.everysport.se/web_gp/match_list.asp?serie_id=749");
      
newCat();   //Ishockey
      O("Herr Elitserien","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Allsvenskan","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division I","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division II","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division III","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division IV","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Dam Division I","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("NHL","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
newCat();   //Handboll
      O("Herr Elitserien","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division I","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division II","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division III","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Herr Division IV","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Dam Elitserien","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Dam Division I","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Dam Division II","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
      O("Dam Division III","http://www.everysport.se/web_gp/match_list.asp?serie_id=");
// end fill array
} // if (v)



function relate(formName,elementNum,j) {
    if(v){
        var formNum = getFormNum(formName);
         if (formNum>=0) {
              formNum++; // reference next form, assume it follows in HTML
              with (document.forms[formNum].elements[elementNum]) {
                    for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd)
                    for(i=0;i<a[j].length;i++){
                          options[i] = new Option(a[j][i].text,a[j][i].value);
                    }
                    options[0].selected = true;
              }
        }
    }
    else {
        jmp(formName,elementNum);
    }
}

function IEsetup(){
      if(!document.all) return;
      IE5 = navigator.appVersion.indexOf("5.")!=-1;
      if(!IE5) {
            for (i=0;i<document.forms.length;i++) {
                  document.forms[i].reset();
            }
      }
}

window.onload = IEsetup;

//-->
</SCRIPT>

</HEAD>
<BODY bgColor=#ffffff>
<CENTER>

<TABLE bgColor=#FFFFFF border=1 cellPadding=0 cellSpacing=0 bordercolor=#000000>
<TR><TD>

<TABLE bgColor=#FFFFFF border=0 cellPadding=4 cellSpacing=2>
          <TBODY>
            <TR>
              <TD vAlign=top> <FORM action=http://www.webreference.com/cgi-bin/redirect.cgi method=post name=f1
      onsubmit="return false;">
                  <SELECT class=saveHistory id=m1 name=m1 onchange=relate(this.form,0,this.selectedIndex)>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=6469">Fotboll</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=5838">Ishockey</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=5841">Handboll</option>
                  </SELECT>
                </FORM></TD>
            </TR>
            <TR>
              <TD vAlign=top> <FORM action=http://www.webreference.com/cgi-bin/redirect.cgi method=post name=f2
      onsubmit="return false;">
                  <SELECT class=saveHistory id=m2 name=m2 onchange=jmp(this.form,0)>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=6469">Herr
                    Allsvenskan</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=6470">Herr
                    Superettan</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=743">Herr
                    Division II</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=744">Herr
                    Division III</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=745">Herr
                    Division IV</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=746">Herr
                    Division V</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=747">Herr
                    Division VI</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=748">Herr
                    Division VII</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=749">Herr
                    Division VIII</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=6489">Dam
                    Allsvenskan</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=751">Dam
                    Division I</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=752">Dam
                    Division II</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=753">Dam
                    Division III</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=754">Dam
                    Division IV</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=755">Dam
                    Division V</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Norge</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Finland</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    England</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Italien</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Spanien</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Frankrike</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Skottland</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Tyskland</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Holland</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Danmark</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Internationellt
                    Champions League</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Herrar
                    Svenska Cupen</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Damer
                    Svenska Cupen</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Juniorallsvenskan
                    Elit Södra</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Juniorallsvenskan
                    V:A Götaland</option>
                    <option value="http://www.everysport.se/web_gp/match_list.asp?serie_id=">Allsvenska
                    utvecklingsserien</option>
                  </SELECT>
                  <INPUT name=baseurl type=hidden value=http://www.webreference.com>
                </FORM></TD>
            </TR>
            <TR>
              <TD vAlign=top>Third menue here</TD>
            </TR>
          </TBODY>
        </TABLE>
</TD></TR></TABLE>
</CENTER></BODY></HTML>
0
algabatz
Asked:
algabatz
  • 3
  • 2
1 Solution
 
avnerCommented:
Try this code :

<html>
<head>
<script language=javascript>
var m_arr = new Array();
m_arr[0] = "Verzekeraar|Tussenpersoon|Bank-verzekeraar";
m_arr[1] = "Rijksoverheid|Provinciale overheid";
m_arr[2] = "Landelijke politiek|provinciale politiek"
m_arr[3] = "Landelijk dagblad|blah";


var m2_arr = new Array();
m2_arr [0] = "So1mething|So1mething|So1mething";
m2_arr [1] = "So2mething|So1mething|So1mething";
m2_arr [2] = "So3mething|So1mething|So1mething";
m2_arr [3] = "So4mething|So1mething|So1mething";

var oArrays = [m_arr, m2_arr];

function sh(obj, o_objn, Index)
{
    f = obj.form;
    other_obj = f[o_objn];
s = oArrays[Index][obj.selectedIndex].split("|");
if(document.all) other_obj.options.length = 0
for(i=0;i<s.length;i++)
{
if(document.all) other_obj[i] = new Option();
other_obj[i].value = s[i]
other_obj[i].text= s[i];
}
}
</script>
</head>
<body onload="sh(document.forms[0]['firstselect'], 'otherselect', 0)">
<form>
<select onChange="sh(this, 'otherselect', 0)" name='firstselect'>
<option>Financieel-economisch</option>
<option>Overheid</option>
<option>Politiek</option>
<option>Media</option>
</select>

<select name="otherselect" onChange="sh(this, 'otherselect2', 1)" > 
<option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
<option></option>
<option></option>
<option></option>
</select>

<select name="otherselect2">
<option>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
<option></option>
<option></option>
<option></option>
</select>
</form>
</body>
</html>

0
 
weeezlCommented:
0
 
algabatzAuthor Commented:
weeezl, u got the points but i still have a question. I need the URL to load in a frame called "main", can this be done. Here's the webref. script:




<HTML>
<HEAD><TITLE>Gvteborgs-Posten</TITLE>
<META NAME="save" CONTENT="history">
<!--UPPDATERAD 28/2 2003 -->

<STYLE>
         .saveHistory {behavior:url(#default#savehistory);}
</STYLE>

<SCRIPT LANGUAGE="JavaScript">
<!--
v=false;
//-->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript1.1">
<!--
if (typeof(Option)+"" != "undefined") v=true;
//-->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">
<!--
var url="http://www.everysport.se/web_gp/match_list.asp?"
if(v){a=new Array(22);aln=22;}

function getFormNum (formName) {
      var formNum =-1;
      for (i=0;i<document.forms.length;i++){
            tempForm = document.forms[i];
            if (formName == tempForm) {
                  formNum = i;
                  correctForm = tempForm;
                  break;
            }
      }
      return formNum;
}


function jmp(form, elt)
// The first parameter is a reference to the form.
{
      if (form != null) {
            with (form.elements[elt]) {
                  if (0 <= selectedIndex)
                        location = options[selectedIndex].value;
            }
      }
}

var catsIndex = -1;
var itemsIndex;
var subItemsIndex;

function newCat(){
      catsIndex++;
      a[catsIndex] = new Array();
      itemsIndex = -1;
}

function O(txt,url) {
      itemsIndex++;
      a[catsIndex][itemsIndex] = new Array();
      a[catsIndex][itemsIndex].text = txt;
      a[catsIndex][itemsIndex].value = url;
      subItemsIndex = 0;
}

function OO(txt,url) {
      a[catsIndex][itemsIndex][subItemsIndex] = new myOptions(txt,url);
      subItemsIndex++;
}

function myOptions(txt,url){
      this.text = txt;
      this.value = url;
}

// fill array

if (v) { // ns 2 fix
newCat();

O("","");
      OO("","");


//FOTBOLL

newCat();

O("Herr Allsvenskan",url+"serie_id=");
      OO("",url+"serie_id=");
      
O("Herr Superettan",url+"serie_id=");
      OO("","");
      
O("Herr Svenska cupen",url+"serie_id=6771");
      OO("","");
            
      
O("Herr Division II", url+"serie_id=");
//      OO("Norrland", url+"serie_id=");
      OO("Svdra Gvtaland", url+"serie_id=6476");
      OO("Vdstra Gvtaland",url+"serie_id=6474");
      OO("Vdstra Svealand",url+"serie_id=6475");
      OO("Vstra Gvtaland",url+"serie_id=6472");
//      OO("Vstra Svealand",url+"serie_id=");
      
O("Herr Division III",url+"serie_id=");
      OO("Mellersta Gvtaland",url+"serie_id=6487");
//      OO("Mellersta Norrland",url+"serie_id=");
//    OO("Norra Norrland",url+"serie_id=");
//      OO("Norra Svealand",url+"serie_id=");
      OO("Nordvdstra Gvtaland",url+"serie_id=6485");
      OO("Nordvstra Gvtaland",url+"serie_id=6483");
//      OO("Svdra Gvtaland",url+"serie_id=");
//      OO("Svdra Norrland",url+"serie_id=");
      OO("Sydvdstra Gvtaland",url+"serie_id=6486");
      OO("Sydvstra Gvtaland",url+"serie_id=6484");
      OO("Vdstra Svealand",url+"serie_id=6482");
//      OO("Vstra Svealand",url+"serie_id=");
            
O("Herr Division IV","");
//    OO("Blekinge",url+"serie_id=");
      OO("Bohusldn/Dalsland",url+"serie_id=6529");
//      OO("Dalarna",url+"serie_id=");
//      OO("Gestrikland",url+"serie_id=");
//      OO("Gotland",url+"serie_id=");
      OO("Gvteborg A",url+"serie_id=6518");
      OO("Gvteborg B",url+"serie_id=6519");
      OO("Halland",url+"serie_id=6749");
//      OO("Hdlsingland",url+"serie_id=");
//      OO("Jdmtland/Hdrjedalen",url+"serie_id=");
//      OO("Medelpad",url+"serie_id=");
      OO("Norrbotten Norra",url+"serie_id=");
      OO("Norrbotten Svdra",url+"serie_id=");
//      OO("Skene Norra",url+"serie_id=");
//      OO("Skene Svdra",url+"serie_id=");
//      OO("Skene Vdstra",url+"serie_id=");
      OO("Smeland Elit Vdstra",url+"serie_id=6540");
      OO("Smeland Elit Vstra",url+"serie_id=6541");
      OO("Smeland Nordvdstra",url+"serie_id=6542");
      OO("Smeland Nordvstra",url+"serie_id=6543");
      OO("Smeland Sydvdstra",url+"serie_id=6545");
      OO("Smeland Sydvstra",url+"serie_id=6544");
//      OO("Stockholm Mellersta",url+"serie_id=");
//      OO("Stockholm Norra",url+"serie_id=");
//      OO("Stockholm Svdra",url+"serie_id=");
//   OO("Svdermanland",url+"serie_id=");
//      OO("Uppland",url+"serie_id=");
      OO("Vdrmland",url+"serie_id=6569");
      OO("Vdstergvtland Norra",url+"serie_id=6445");
      OO("Vdstergvtland Svdra",url+"serie_id=6447");
      OO("Vdstergvtland Vdstra",url+"serie_id=6446");
//      OO("Vdstmanland",url+"serie_id=");
//      OO("Vrebro",url+"serie_id=");
//      OO("Vstergvtland Vdstra",url+"serie_id=");
//      OO("Vstergvtland Vstra",url+"serie_id=");
      
O("Herr Division V",url+"serie_id=");
//      OO("Blekinge",url+"serie_id=");
      OO("Bohusldn",url+"serie_id=6530");
//      OO("Dalarna Norra",url+"serie_id=");
//      OO("Dalarna Svdra",url+"serie_id=");
      OO("Dalsland",url+"serie_id=6794");
//      OO("Gestrikland",url+"serie_id=");
//      OO("Gotland",url+"serie_id=");
      OO("Gvteborg A",url+"serie_id=6520");
      OO("Gvteborg B",url+"serie_id=6521");
      OO("Halland Norra",url+"serie_id=6755");
//      OO("Halland Svdra",url+"serie_id=");
//      OO("Hdlsingland",url+"serie_id=");
//      OO("Jdmtland/Hdrjedalen",url+"serie_id=");
//      OO("Medelpad",url+"serie_id=");
//      OO("Skene Mellersta",url+"serie_id=");
//      OO("Skene Nordvdstra A",url+"serie_id=");
//      OO("Skene Nordvdstra B",url+"serie_id=");
//      OO("Skene Nordvstra",url+"serie_id=");
//      OO("Skene Sydvdstra",url+"serie_id=");
//      OO("Skene Sydvstra",url+"serie_id=");
      OO("Smeland Norra",url+"serie_id=6547");
      OO("Smeland Nordvdstra",url+"serie_id=6546");
      OO("Smeland Nordvstra",url+"serie_id=6548");
      OO("Smeland Svdra",url+"serie_id=6551");
      OO("Smeland Sydvdstra",url+"serie_id=6552");
      OO("Smeland Sydvstra",url+"serie_id=6550");
      OO("Smeland Vdstra",url+"serie_id=6553");
      OO("Smeland Vstra",url+"serie_id=6549");
//      OO("Stockholm Mellersta",url+"serie_id=");
//      OO("Stockholm Norra",url+"serie_id=");
//      OO("Stockholm Svdra",url+"serie_id=");
//      OO("Svdermanland",url+"serie_id=");
//      OO("Uppland Vdstra",url+"serie_id=");
//      OO("Uppland Vstra",url+"serie_id=");
      OO("Vdrmland Vdstra",url+"serie_id=6571");
      OO("Vdrmland Vstra",url+"serie_id=6570");
      OO("Vdstergvtland Norra",url+"serie_id=6448");
      OO("Vdstergvtland Nordvdstra ",url+"serie_id=6450");
      OO("Vdstergvtland Sydvdstra",url+"serie_id=6453");
      OO("Vdstergvtland Sydvstra",url+"serie_id=6452");
      OO("Vdstergvtland Vdstra",url+"serie_id=6451");
      OO("Vdstergvtland Vstra",url+"serie_id=6449");
//      OO("Vrebro",url+"serie_id=");
//      OO("Vstergvtland Mellersta",url+"serie_id=");
//      OO("Vstergvtland Vdstra",url+"serie_id=");
//      OO("Vstergvtland Vstra",url+"serie_id=");

O("Herr Division VI","");
//      OO("Blekinge Vdstra",url+"serie_id=");
//      OO("Blekinge Vstra",url+"serie_id=");
      OO("Bohusldn Norra",url+"serie_id=6531");
      OO("Bohusldn Svdra",url+"serie_id=6532");
      OO("Bores",url+"serie_id=6458");
      OO("Dalsland",url+"serie_id=6795");
//      OO("Gestrikland",url+"serie_id=");
//      OO("Gotland",url+"serie_id=");
      OO("Gvteborg A",url+"serie_id=6522");
      OO("Gvteborg B",url+"serie_id=6523");
      OO("Gvteborg C",url+"serie_id=6524");
      OO("Gvteborg D",url+"serie_id=6525");
      OO("Halland Norra",url+"serie_id=6787");
      OO("Halland Svdra",url+"serie_id=6788");
//      OO("Huskvarna",url+"serie_id=");
//      OO("Hdlsingland Norra",url+"serie_id=");
//      OO("Hdlsingland Svdra",url+"serie_id=");
//      OO("Jdmtland/Hdrjedalen",url+"serie_id=");
//      OO("Jvnkvping",url+"serie_id=");
      OO("Kinna",url+"serie_id=6459");
      OO("Lidkvping",url+"serie_id=6456");
      OO("Mariestad",url+"serie_id=6454");
//      OO("Nybro",url+"serie_id=");
//      OO("Skene Mellersta",url+"serie_id=");
//      OO("Skene Nordvdstra A",url+"serie_id=");
//      OO("Skene Nordvdstra B",url+"serie_id=");
//      OO("Skene Nordvstra A",url+"serie_id=");
//      OO("Skene Nordvstra B",url+"serie_id=");
//      OO("Skene Sydvdstra A",url+"serie_id=");
//      OO("Skene Sydvdstra B",url+"serie_id=");
//      OO("Skene Sydvstra",url+"serie_id=");
      OO("Skvvde",url+"serie_id=6455");
//      OO("Sunnerbo",url+"serie_id=");
//      OO("Svdermanland Norra",url+"serie_id=");
//      OO("Svdermanland Svdra",url+"serie_id=");
//      OO("Svdermanland Vdstra",url+"serie_id=");
      OO("Trollhdttan",url+"serie_id=6457");
      OO("Ulricehamn",url+"serie_id=6460");
//      OO("Uppland Norra",url+"serie_id=");
//      OO("Uppland Svdra",url+"serie_id=");
//      OO("Uppland Vdstra",url+"serie_id=");
//      OO("Uppland Vstra",url+"serie_id=");
//      OO("Vetlanda",url+"serie_id=");
//      OO("Vdrend",url+"serie_id=");
//      OO("Vdrmland Central",url+"serie_id=");
//      OO("Vdrmland Vdstra",url+"serie_id=");
//      OO("Vdrmland Vstra",url+"serie_id=");
//      OO("Vdstbo",url+"serie_id=");
//      OO("Vdstervik",url+"serie_id=");
//      OO("Vland",url+"serie_id=");
//      OO("Vrebro Norra",url+"serie_id=");
//      OO("Vrebro Svdra",url+"serie_id=");
//      OO("Vstergvtland Mellersta",url+"serie_id=");
//      OO("Vstergvtland Norra",url+"serie_id=");
//      OO("Vstergvtland Svdra",url+"serie_id=");
//      OO("Vstergvtland Vdstra",url+"serie_id=");
//      OO("Vstergvtland Vstra",url+"serie_id=");
      
O("Herr Division VII","");
//      OO("Dalsland",url+"serie_id=");
//      OO("Gotland",url+"serie_id=");
      OO("Gvteborg A",url+"serie_id=6828");
      OO("Gvteborg B",url+"serie_id=6829");
      OO("Gvteborg C",url+"serie_id=6830");
      OO("Gvteborg D",url+"serie_id=6831");
      OO("Halland Norra",url+"serie_id=6789");
      OO("Halland Svdra",url+"serie_id=6790");
//      OO("Hdlsingland Norra",url+"serie_id=");
//      OO("Hdlsingland Svdra",url+"serie_id=");
//      OO("Skene Mellersta A",url+"serie_id=");
//      OO("Skene Mellersta B",url+"serie_id=");
//      OO("Skene Nordvdstra A",url+"serie_id=");
//      OO("Skene Nordvdstra B",url+"serie_id=");
//      OO("Skene Nordvstra A",url+"serie_id=");
//      OO("Skene Nordvstra B",url+"serie_id=");
//      OO("Skene Sydvdstra A",url+"serie_id=");
//      OO("Skene Sydvdstra B",url+"serie_id=");
//      OO("Skene Sydvstra",url+"serie_id=");
//      OO("Svdermanland Norra",url+"serie_id=");
//      OO("Svdermanland Vdstra",url+"serie_id=");
//      OO("Svdermanland Vstra",url+"serie_id=");
//      OO("Uppland Norra",url+"serie_id=");
//      OO("Uppland Vdstra",url+"serie_id=");
//      OO("Uppland Vstra",url+"serie_id=");
//      OO("Vdrmland Norra",url+"serie_id=");
//      OO("Vdrmland Vdstra",url+"serie_id=");
//      OO("Vdrmland Vstra ",url+"serie_id=");
//      OO("Vrebro Norra",url+"serie_id=");
//      OO("Vrebro Svdra",url+"serie_id=");
      
O("Herr Division VIII",url+"");
//      OO("Dalsland",url+"serie_id=");
      OO("Gvteborg",url+"serie_id=6827");
      
O("Allsvenska Utvecklingsserien",url+"serie_id=6832");
      OO("",url+"");      
      
O("Juniorallsvenskan",url+"");
      OO("Elit Svdra",url+"serie_id=6833");
      OO("Vdstra Gvtaland",url+"serie_id=6834");      
            
O("Dam Allsvenskan",url+"serie_id=6489");
      OO("",url+"");
      
O("Dam Svenska Cupen",url+"serie_id=6772");
      OO("",url+"");
                  
O("Dam Division I",url+"");
//      OO("Norrettan",url+"serie_id=");
      OO("Svderettan",url+"serie_id=6491");
      
O("Dam Division II",url+"");
      OO("Norra Gvtaland",url+"serie_id=6492");
//      OO("Norra Norrland",url+"serie_id=");
      OO("Svdra Gvtaland",url+"serie_id=6500");
//      OO("Svdra Norrland",url+"serie_id=");
//      OO("Svdra Svealand",url+"serie_id=");
      OO("Vdstra Gvtaland",url+"serie_id=6498");
      OO("Vdstra Svealand",url+"serie_id=6495");
      OO("Vstra Gvtaland",url+"serie_id=6499");
//      OO("Vstra Svealand",url+"serie_id=");
      
O("Dam Division III",url+"serie_id=");
      OO("Bohusldn/Dalsland",url+"serie_id=6533");
//      OO("Dalarna",url+"serie_id=");
//      OO("Gestrikland",url+"serie_id=");
//      OO("Gvteborg",url+"serie_id=");
      OO("Halland",url+"serie_id=6750");
//      OO("Hdlsingland",url+"serie_id=");
//      OO("Jdmtland/Hdrjedalen",url+"serie_id=");
//      OO("Medelpad",url+"serie_id=");
//      OO("Skene Norra",url+"serie_id=");
//      OO("Skene Svdra",url+"serie_id=");
//      OO("Smeland Norra",url+"serie_id=");
//      OO("Smeland Sydvdstra",url+"serie_id=");
//      OO("Smeland Sydvstra",url+"serie_id=");
//      OO("Stockholm A",url+"serie_id=");
//      OO("Stockholm B",url+"serie_id=");
//      OO("Svdermanland",url+"serie_id=");
//      OO("Uppland",url+"serie_id=");
      OO("Vdrmland",url+"serie_id=6575");
      OO("Vdstergvtland Norra",url+"serie_id=6461");
      OO("Vdstergvtland Svdra",url+"serie_id=6462");
//      OO("Vrebro",url+"serie_id=");
//      OO("Vstergvtland",url+"serie_id=");
      
O("Dam Division IV",url+"serie_id=");
//      OO("Blekinge",url+"serie_id=");
//      OO("Bohusldn/Dalsland",url+"serie_id=");
//      OO("Gotland",url+"serie_id=");
      OO("Gvteborg A",url+"serie_id=6527");
      OO("Gvteborg B",url+"serie_id=6528");
//      OO("Halland",url+"serie_id=");
//      OO("Hdlsingland",url+"serie_id=");
//      OO("Jdmtland/Hdrjedalen",url+"serie_id=");
//      OO("Skene Norra",url+"serie_id=");
//      OO("Skene Svdra",url+"serie_id=");
//      OO("Skene Vdstra",url+"serie_id=");
//      OO("Smeland Nordvdstra",url+"serie_id=");
//      OO("Smeland Nordvstra",url+"serie_id=");
//      OO("Smeland Svdra",url+"serie_id=");
//      OO("Smeland Sydvstra",url+"serie_id=");
//      OO("Smeland Vdstra",url+"serie_id=");
//      OO("Svdermanland",url+"serie_id=");
//      OO("Uppland Vdstra",url+"serie_id=");
//      OO("Uppland Vstra",url+"serie_id=");
//      OO("Vdrmland",url+"serie_id=");
//      OO("Vdstergvtland Nordvdstra",url+"serie_id=");
//      OO("Vdstergvtland Nordvstra",url+"serie_id=");
//      OO("Vdstergvtland Svdra ",url+"serie_id=");
//      OO("Vdstergvtland Vdstra",url+"serie_id=");
//      OO("Vrebro",url+"serie_id=");
//      OO("Vstergvtland",url+"serie_id=");
      
O("Dam Division V",url+"serie_id=");
//      OO("Bohusldn",url+"serie_id=");
//      OO("Dalsland",url+"serie_id=");
//      OO("Halland Mellersta",url+"serie_id=");
//      OO("Halland Norra",url+"serie_id=");
//      OO("Halland Svdra",url+"serie_id=");
//      OO("Skene Mellersta A",url+"serie_id=");
//      OO("Skene Mellersta B",url+"serie_id=");
//      OO("Skene Nordvdstra A",url+"serie_id=");
//      OO("Skene Nordvdstra B",url+"serie_id=");
//      OO("Skene Nordvstra A",url+"serie_id=");
//      OO("Skene Nordvstra B",url+"serie_id=");
//      OO("Skene Sydvdstra",url+"serie_id=");
//      OO("Skene Sydvstra",url+"serie_id=");
//      OO("Smeland Norra",url+"serie_id=");
//      OO("Smeland Nordvdstra",url+"serie_id=");
//      OO("Smeland Nordvstra",url+"serie_id=");
//      OO("Smeland Svdra",url+"serie_id=");
//      OO("Smeland Sydvstra",url+"serie_id=");
//      OO("Smeland Vdstra",url+"serie_id=");
//      OO("Smeland Vstra",url+"serie_id=");
//      OO("Svdermanland Norra",url+"serie_id=");
//      OO("Svdermanland Svdra",url+"serie_id=");
//      OO("Uppland Norra",url+"serie_id=");
//      OO("Uppland Svdra",url+"serie_id=");
//      OO("Vdrmland Central",url+"serie_id=");
//      OO("Vdrmland Vdstra",url+"serie_id=");
//      OO("Vstergvtland Mellersta",url+"serie_id=");
//      OO("Vstergvtland Vdstra",url+"serie_id=");
//      OO("Vstergvtland Vstra",url+"serie_id=");
      
// O("Ungdomsfotboll",url+"serie_id=");
//      OO("",url+"serie_id=");

//ISHOCKEY
                                          
newCat();  
//O("Herr Elitserien","");
//      OO("Elitserien",url+"serie_id=");
//      OO("J-20 Superelit",url+"serie_id=");
//      OO("Kvartsfinal",url+"serie_id=");
      
O("Herr Allsvenskan","");
//      OO("Norra",url+"serie_id=");
//      OO("Norra Ver",url+"serie_id=");
//      OO("Superallsvenskan",url+"serie_id=");
      OO("Svdra",url+"serie_id=5840");
      OO("Svdra Ver",url+"serie_id=6658");
      
O("Herr division I",url+"serie_id=");      
//      OO("Allettan Norra",url+"serie_id=");
      OO("Allettan Vdstra",url+"serie_id=6662");
//      OO("Allettan Vstra",url+"serie_id=");
//      OO("Kvalser. Div 1 vstra",url+"serie_id=");
      OO("Kval Svdra A",url+"serie_id=6861");
//      OO("Kval Svdra B",url+"serie_id=");
//      OO("Norra A",url+"serie_id=");
//      OO("Norra A Ver",url+"serie_id=");
//      OO("Norra B",url+"serie_id=");
//      OO("Norra B Ver",url+"serie_id=");
      OO("Svdra",url+"serie_id=6006");
//      OO("Vdstra A",url+"serie_id=");
//      OO("Vdstra A Ver",url+"serie_id=");
      OO("Vdstra B",url+"serie_id=6008");
      OO("Vdstra B Ver",url+"serie_id=6665");
//      OO("Vstra A",url+"serie_id=");
//      OO("Vstra B",url+"serie_id=");
//      OO("Vstra Ver",url+"serie_id=");
      
      
O("Herr division II",url+"serie_id=");      
//      OO("Alltvean Vdstra A",url+"serie_id=");
//      OO("Alltvean Vdstra B",url+"serie_id=");
//      OO("Dalarna",url+"serie_id=");
//      OO("Dalarna Ver",url+"serie_id=");
//      OO("Gdvleborg Ver",url+"serie_id=");
//      OO("Gdvleborg",url+"serie_id=");
//      OO("Kvalserie till Div. 2 Gdvleborg",url+"serie_id=");
//      OO("Kval Dalarna",url+"serie_id=");
//      OO("Kvalserie till Kvalserie Div. 2 Vstra",url+"serie_id=");
      OO("Kval Svdra A",url+"serie_id=6863");
      OO("Kval Svdra B",url+"serie_id=6864");
//      OO("Kval Svdra C",url+"serie_id=");
//      OO("Kval Svdra D",url+"serie_id=");
//      OO("Norra A",url+"serie_id=");
//      OO("Norra A Ver",url+"serie_id=");
//      OO("Norra B",url+"serie_id=");
//      OO("Norra B Ver",url+"serie_id=");
//      OO("Norra C",url+"serie_id=");
//      OO("Norra C Ver",url+"serie_id=");
//      OO("Norra D",url+"serie_id=");
//      OO("Norra D Ver",url+"serie_id=");
//      OO("Stockholm A",url+"serie_id=");
//      OO("Stockholm Norra",url+"serie_id=");
//      OO("Stockholm Svdra",url+"serie_id=");
      OO("Svdra A",url+"serie_id=6011");
      OO("Svdra B",url+"serie_id=6012");
//      OO("Vdrmland Ver",url+"serie_id=");
//      OO("Vdrmland",url+"serie_id=");
//      OO("Vrebro/Vdstmanland",url+"serie_id=");
      
O("Herr division III",url+"serie_id=");      
//      OO("Dalarna",url+"serie_id=");
//      OO("Dalarna Ver",url+"serie_id=");
//      OO("Gdvleborg",url+"serie_id=");
      OO("Gvtaland Norra",url+"serie_id=6219");
      OO("Gvtaland Vdstra",url+"serie_id=6222");
//      OO("Gvtaland Vstra",url+"serie_id=");
//      OO("Kvalserie till Kvalserie Div. 3 Stockholm",url+"serie_id=");
//      OO("Smeland",url+"serie_id=");
//      OO("Stockholm A",url+"serie_id=");
//      OO("Stockholm Norra",url+"serie_id=");
//      OO("Stockholm Svdra",url+"serie_id=");
//      OO("Svdra B",url+"serie_id=");
//      OO("Vdrmland",url+"serie_id=");
//      OO("Vdsterbotten",url+"serie_id=");
//      OO("Vdstmanland/Vrebro Ver",url+"serie_id=");
//      OO("Vdstmanland/Vrebro",url+"serie_id=");

      
O("Herr division IV",url+"serie_id=");      
      OO("Gvteborg A",url+"serie_id=6318");
      OO("Gvteborg B",url+"serie_id=6319");
//      OO("Stockholm Norra",url+"serie_id=");
//      OO("Stockholm Vdstra",url+"serie_id=");
//      OO("Stockholm Vstra",url+"serie_id=");
//      OO("Vstregvtland",url+"serie_id=");
      
//O("Dam division V",url+"serie_id=");      
//      OO("Norra A",url+"serie_id=");
//      OO("Norra B",url+"serie_id=");
//      OO("Svdra",url+"serie_id=");
//      OO("Vstra/Vdstra",url+"serie_id=");
      
//O("NHL",url+"serie_id=");      
//      OO("",url+"serie_id=");                              
      
//HANDBOLL


newCat();

O("Herr Elitserien","");
      OO("Allsvenskan Ver",url+"serie_id=6701");
//      OO("Elitserien Ver",url+"serie_id=");
//      OO("Elitserien",url+"serie_id=");
      
O("Herr Division I","");
//      OO("Norra",url+"serie_id=");
//      OO("Norra ver",url+"serie_id=");
      OO("Svdra",url+"serie_id=5843");
      OO("Svdra Ver",url+"serie_id=6697");
      
O("Herr Division II","");
//      OO("Norra",url+"serie_id=");
//      OO("Svdra",url+"serie_id=");
      OO("Vdstra",url+"serie_id=5846");
      OO("Vstra",url+"serie_id=5845");
      
O("Herr Division III","");
//      OO("Mellansvenska Norra",url+"serie_id=");
//      OO("Mellansvenska Svdra",url+"serie_id=");
//      OO("Mellansvenska Vstra",url+"serie_id=");
//      OO("Norrland",url+"serie_id=");
//      OO("Sydsvenska Norra",url+"serie_id=");
//      OO("Sydsvenska Svdra",url+"serie_id=");
      OO("Vdstsvenska Norra",url+"serie_id=5852");
      OO("Vdstsvenska Vdstra",url+"serie_id=5853");
      
O("Herr Division IV","");
//      OO("Mellansvenska Play Off",url+"serie_id=");
//      OO("Mellansvenska Svdra",url+"serie_id=");
//      OO("Mellansvenska Vstra",url+"serie_id=");
//      OO("Mellansvenska Samarbetslag",url+"serie_id=");
//      OO("Mellansvenska Vdstra Norra Poolen",url+"serie_id=");
//      OO("Mellansvenska Vdstra Svdra poolen",url+"serie_id=");
//      OO("Skene Vdstra",url+"serie_id=");
//      OO("Skene Vstra",url+"serie_id=");
//      OO("Smeland Vdstra",url+"serie_id=");
//      OO("Smeland Vstra",url+"serie_id=");
//      OO("Vdstsvenska Norra",url+"serie_id=");
      OO("Vdstsvenska Svdra",url+"serie_id=6072");
      OO("Vdstsvenska Vdstra",url+"serie_id=6071");
      
O("Dam Elitserien",url+"serie_id=5856");
      OO("Allsvenskan Ver",url+"serie_id=6699");
      OO("Elitserien Ver",url+"serie_id=6698");
      OO("Elitserien",url+"serie_id=5856");
      
O("Dam Division I","");
//      OO("Norra",url+"serie_id=");
//      OO("Norra ver",url+"serie_id=");
      OO("Svdra",url+"serie_id=5858");
      OO("Svdra Ver",url+"serie_id=6694");
      
O("Dam Division II","");
//      OO("Mellansvenska Norra",url+"serie_id=");
//      OO("Mellansvenska Svdra",url+"serie_id=");
//      OO("Norrland",url+"serie_id=");
//      OO("Sydsvenska Norra",url+"serie_id=");
//      OO("Sydsvenska Svdra A",url+"serie_id=");
//      OO("Sydsvenska Svdra B",url+"serie_id=");
      OO("Vdstsvenska Norra",url+"serie_id=5862");
      OO("Vdstsvenska Vdstra",url+"serie_id=5863");
      
O("Dam Division III","");
//      OO("Mellansvenska Norra",url+"serie_id=");
//      OO("Mellansvenska Svdra",url+"serie_id=");
//      OO("Mellansvenska Vdstra",url+"serie_id=");
//      OO("Mellansvenska Vstra",url+"serie_id=");
//      OO("Skene Vdstra",url+"serie_id=");
//      OO("Skene Vstra",url+"serie_id=");
//      OO("Smeland Vdstra",url+"serie_id=");
//      OO("Smeland Vstra",url+"serie_id=");
//      OO("Vdstsvenska Nordvstra",url+"serie_id=");
      OO("Vdstsvenska Vdstra",url+"serie_id=6085");
      
O("Dam Division IV","");
      OO("Vdstsvenska Vdstra",url+"serie_id=6836");                                          
      
O("Junior Elitserien","serie_id=6835");
      OO("Gvteborg",url+"serie_id=6835");      
      
} // if (v)

function relate(formName,elementNum,j) {
// relate first to second (and third) menus
// ie change first menu, changes second, then change third
//
if(v){
var formNum = getFormNum(formName);
 if (formNum>=0) {
      formNum++; // reference next form, assume it follows in HTML
      with (document.forms[formNum].elements[elementNum]) {
            for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd)
            for(i=0;i<a[j].length;i++){
                  options[i] = new Option(a[j][i].text,a[j][i].value);
            }
            options[0].selected = true;
      }
// change third menu
relate2(formName,elementNum,0,1);
 }
} else {
jmp(formName,elementNum);
}
}

function relate2(formName,elementNum,j,fromRelate) {
if(v){
var formNum = getFormNum(formName);
 if (formNum>=0) {
      // find first menu's selection
      // fromRelate means "coming from relate function?"
      //   then increment formNum so k refers to first form,
      //   not the nonexistent one before it (-1)
      if (fromRelate) formNum++; // assumes forms follow each other
      k = document.forms[formNum-1].elements[elementNum].selectedIndex;
      if(k<0)k=0; // precaution against missing selected in first menu list - abk
      formNum++; // reference next form, assume it follows in HTML
      with (document.forms[formNum].elements[elementNum]) {
            for(i=options.length-1;i>0;i--) options[i] = null; // null out in reverse order (bug workarnd)
            for(i=0;i<a[k][j].length;i++){
                  options[i] = new Option(a[k][j][i].text,a[k][j][i].value);
            }
            options[0].selected = true;
      }
 }
} else {
jmp(formName,elementNum);
}
}

// BACK BUTTON FIX for ie4+- or
// MEMORY-CACHE-STORING-ONLY-INDEX-AND-NOT-CONTENT
//
// from peter belesis:
// IE4+ remembers the index of each SELECT but NOT the CONTENTS of each
// SELECT, so it gets it wrong.
//
// it has to do with MEMORY CACHE (where form input is stored) and how
// IE stores information about SELECT menus.
//
// IE stores the selectedINDEX ONLY of the SELECT menu, not the
// CONTENTS-AT-THE-TIME-OF-SELECTION
//
// when we return to a page, it displays the default contents of each
// SELECT, grabs the stored index from cache and aligns the default
// contents to that index.
//
// Netscape, on the other hand, seems to remember both INDEX and CONTENTS
// added ie5 persistence 990714

function IEsetup(){
      if(!document.all) return;
      IE5 = navigator.appVersion.indexOf("5.")!=-1;
      if(!IE5) {
            for (i=0;i<document.forms.length;i++) {
                  document.forms[i].reset();
            }
      }
}

window.onload = IEsetup;

//-->
</SCRIPT></HEAD>
<BODY BGCOLOR="#ffffff">

<CENTER>
<TABLE BGCOLOR="#E4EEE7" BORDER="0" CELLPADDING="8" CELLSPACING="0">
<TR VALIGN="TOP">
      <TD>
        <FORM NAME="f1" METHOD="POST" ACTION="/cgi-bin/redirect.cgi" onSubmit="return false;">
<SELECT NAME="m1" ID="m1" CLASS=saveHistory onChange="relate(this.form,0,this.selectedIndex)">
<OPTION VALUE="">Vdlj idrott<OPTION VALUE="/experts/">Fotboll<OPTION VALUE="/index2.html">Ishockey<OPTION VALUE="/index3.html">Handboll</OPTION></SELECT>
          <INPUT TYPE=SUBMIT VALUE="Visa" onClick="jmp(this.form,0);">
</FORM></TD>
<TD VALIGN=MIDDLE><B>---&gt;</B></TD>

      <TD><FORM NAME="f2" METHOD="POST" ACTION="/cgi-bin/redirect.cgi" onSubmit="return false;">
<SELECT NAME="m2" ID="m2" CLASS=saveHistory onChange="relate2(this.form,0,this.selectedIndex,0)">
<OPTION VALUE="/3d/">
</SELECT>
          <INPUT TYPE=SUBMIT VALUE="Visa" onClick="jmp(this.form,0);">
<INPUT TYPE="hidden" NAME="baseurl" VALUE="http://www.webreference.com">
</FORM></TD>
<TD VALIGN=MIDDLE><B>---&gt;</B></TD>

      <TD><FORM NAME="f3" METHOD="POST" ACTION="/cgi-bin/redirect.cgi" onSubmit="return false;">
<SELECT NAME="m3" ID="m3" CLASS=saveHistory onChange="jmp(this.form,0)">
<OPTION VALUE="/3d/glossary/">

</SELECT>
          <INPUT TYPE=SUBMIT VALUE="Visa" onClick="jmp(this.form,0);">
<INPUT TYPE="hidden" NAME="baseurl" VALUE="http://www.webreference.com">
</FORM></TD>

</TR>
</TABLE></CENTER>

</BODY>
</HTML>
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
weeezlCommented:
Just put this entire piece of code into your main.html doc (or whatever you want to call it) and load it from your frameset. You don't have to put the code in the top level document. It can be in the frame.

Let me know if you need an example.
0
 
algabatzAuthor Commented:
Yes, but the trouble is that the drop-down is on my home server and the pages are not, so i'll be using iFrames. If i put the list in the main frame, it'll disappear and i don't want my users to need to use the back button.
So the question stands.

Best,
Al
0
 
algabatzAuthor Commented:
Still having trouble with the target main...  :-(
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now