1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
|
<div align=center>
<SPAN style="FONT: bold 20px arial; COLOR: darkred;">Noch</SPAN><br>
<SPAN id=c1 style="FONT: bold 40px arial; COLOR: red;"></SPAN><br>
<SPAN id=c2 style="FONT: bold 35px arial; COLOR: red;">;</SPAN><br>
<SPAN style="FONT: bold 20px arial; COLOR: darkred;">...bis zum Unterrichtsschluss!</SPAN>
</div>
<script type='text/javascript'>
var end = new Date('November 20, 2009 12:25:00');
function toSt2(n) {
s = '';
if (n < 10) s += '0';
return (s + n).toString();
}
function toSt3(n) {
s = '';
if (n < 10) s += '00';
else if (n < 100) s += '0';
return (s + n).toString();
}
function countdown() {
d = new Date();
count = Math.floor(end.getTime() - d.getTime());
if(count > 0) {
miliseconds = toSt3(count%1000); count = Math.floor(count/1000);
seconds = toSt2(count%60); count = Math.floor(count/60);
minutes = toSt2(count%60); count = Math.floor(count/60);
hours = toSt2(count%24); count = Math.floor(count/24);
days = count;
document.getElementById('c1').innerHTML = days + ' TAGE';
document.getElementById('c2').innerHTML = hours + ':' + minutes + ':' + seconds + '.' + miliseconds;
setTimeout('countdown()', 100);
}
}
countdown();
</script> |