Prøv:
<script language="javascript">
var timeLeft = 10;
var t = setInterval(function() {
document.getElementById(timeDisplay).innerHTML = ""+timeLeft;
timeLeft-=1;
if(timeLeft<0) clearIntval(t);
}, 1000);
</script>
Indlæg senest redigeret d. 25.05.2010 15:19 af Bruger #10608