chacharon: Mozilla will einfach nicht

Beitrag lesen

Ja - habe ich.

So sieht es jetzt aus:

if(MS == 1) {
      document.all("box")[i].style.visibility = "hidden";
      document.all("box")[x].style.visibility = "visible";
      document.all("box")[x].style.top = "31";
       }
else if(DOM == 1) {
 document.getElementById("box")[i].style.visibility = "hidden";
      document.getElementById("box")[x].style.visibility = "visible";
      document.getElementById("box")[x].style.top = "31";
       }
else if(NS == 1) {
      document.layers[i].visibility = "hide";
      document.layers[x].visibility = "show";
      document.layers[x].top="32";
       }
    }
}

function subDrop(y) {
     var items = 45
     for (i=7; i<items; i++) {
  if(MS == 1){
      document.all("box")[i].style.visibility = "hidden";
      document.all("box")[y].style.top = "54";
      document.all("box")[y].style.visibility = "visible";
       }
  else if(DOM == 1){
      document.getElementById("box")[i].style.visibility = "hidden";
      document.getElementById("box")[y].style.top = "54";
      document.getElementById("box")[y].style.visibility = "visible";
       }
  else if(NS == 1){
      document.layers[i].visibility = "hide";
      document.layers[y].top = "54";
      document.layers[y].visibility = "show";
        }
    }
}

Jetzt gibt es eine neue Fehlermeldung in der Javascript-Konsole vom Mozilla:
Fehler: document.getElementById("box")[i] has no properties
Zeile: 104

hmmmmm....

chacharon