Hallo Tobias,
So sieht's jetzt aus:
function openIt(x) {
if(MS == 1) {
var items = 44
for (i=0; i<=items; i++) {
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) {
for(var i=1;i<=44;i++){
document.getElementById('box'+i).style.visibility = 'hidden'; // Dies ist Zeile 107
document.getElementById('box'+x).style.visibility = 'visible';
document.getElementById('box'+x).style.top = "31";
}
}
else if(NS == 1) {
var items = 44
for (i=0; i<=items; i++) {
document.layers[i].visibility = "hide";
document.layers[x].visibility = "show";
document.layers[x].top="32";
}
}
}
Im IE und NS geht's - bei Mozilla immer noch den Fehler
document.getElementById("box" + i) has no properties
Zeile: 107