Philip: Ich bin einfach zu blöd...Oder?

Beitrag lesen

So, wer findet hier einen Fehler?
Ich suche schon seit Stunden...

function minusjalo () {
x = cookiearray[2][1]
if (x = 1) {
x = 0
}
if (x = 0) {
x = 1
}
if (x = 1) {
document.getElementById("jalo").firstChild.nodeValue = "Geöffnet";
}
if (x = 0) {
document.getElementById("jalo").firstChild.nodeValue = "Geschlossen";
}
document.cookie = "i=" + i + "; ; expires=" + ablauf.toGMTString();
document.cookie = "t=" + t + "; ; expires=" + ablauf.toGMTString();
document.cookie = "x=" + x + "; ; expires=" + ablauf.toGMTString();

}