Noch <script type="text/javascript"> // Countdown var datum = new Date("January 01, 2030 00:00:00 GMT"); var d = new Date(); var count = Math.floor((datum.getTime() - d.getTime()) / 1000); count = Math.floor(count / (60*60*24)+1); document.write(count); </script> Tage bis zum 1. Januar 2030
<script type='text/javascript'> // Erstellt mit dem Countdown-Generator - Homepage-Total.de // Die Monatsnamen bitte in englisch eintragen (Monatsname, Tag, Jahr, Uhrzeit) var end = new Date('January 01, 2030 00:00:00');
function toSt2(n) { var s = ''; if (n < 10) { s += '0'; } return (s + n).toString(); }
function toSt3(n) { var s = ''; if (n < 10) { s += '00'; } else if (n < 100) { s += '0'; } return (s + n).toString(); }
function countdown() { var d = new Date(); var count = Math.floor(end.getTime() - d.getTime()); if (count > 0) { var miliseconds = toSt3(count%1000); count = Math.floor(count/1000); var seconds = toSt2(count%60); count = Math.floor(count/60); var minutes = toSt2(count%60); count = Math.floor(count/60); var hours = toSt2(count%24); count = Math.floor(count/24); var days = count; document.getElementById('c1').innerHTML = days + ' TAGE'; document.getElementById('c2').innerHTML = hours + ':' + minutes + ':' + seconds setTimeout('countdown()', 100); } else { document.getElementById('c3').innerHTML = 'Das neue Jahr kann beginnen!'; } } countdown(); </script>
<div style='text-align: center;'> <span id='c1' style='font: bold 25px arial; color: #228B22;'>Nicht verfügbar!</span><br> <span id='c2' style='font: bold 20px arial; color: #FF7F50;'>Nicht verfügbar!</span><br> <small>...seit dem 01. Januar 2018 - 00:00:00 Uhr</small> </div>
<script type='text/javascript'> // Erstellt mit dem Countup-Generator - Homepage-Total.de // Bitte ein bereits vergangenes Datum eintragen und die // Monatsnamen in englisch (Monatsname Tag, Jahr Uhrzeit)! var begin = new Date('January 01, 2018 00:00:00');
function toSt2(n) { var s = ''; if (n < 10) { s += '0'; } return (s + n).toString(); }
function toSt3(n) { var s = ''; if (n < 10) { s += '00'; } else if (n < 100) { s += '0'; } return (s + n).toString(); }
function countup() { var d = new Date(); var count = Math.floor(d.getTime() - begin.getTime()); var miliseconds = toSt3(count%1000); count = Math.floor(count/1000); var seconds = toSt2(count%60); count = Math.floor(count/60); var minutes = toSt2(count%60); count = Math.floor(count/60); var hours = toSt2(count%24); count = Math.floor(count/24); var days = count; document.getElementById('c1').innerHTML = days + ' TAGE'; document.getElementById('c2').innerHTML = hours + ':' + minutes + ':' + seconds; setTimeout('countup()', 50); } countup(); </script>