Hallo,
wo liegt mein denkfehler?
Also ich muss zugeben ich komme jetzt irgendwie auch nicht drauf warum das passieren sollte. Ich habe das mal so nachgebaut wie ich es machen würde und so funktioniert es auch, vielleicht hilft es dir weiter:
<html>
<head>
<title>Test</title>
<script type="text/javascript">
[code lang=javascript]function countdown(i, element, timeout) {
var zahl = document.createTextNode(" " + i);
document.getElementById(element).appendChild(zahl);
i--;
if(i>0) window.setTimeout("countdown(" + i + ", '" + element + "', " + timeout + ");", 1000);
}
</script>
</head>
<body onload="countdown(120, 'countdown', 1000)">
<p id="countdown"></p>
</body>
</html>[/code]
Grüße
Jeena Paradies