tach,
Hier isn countdown in Javascript.
Der ist auf english, dabei brauch ich ihn auf deutsch.
Aber welche "Hours" "Minutes" muss ich da umschreiben?
------------------
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript">
dateFuture = new Date(2008,9,31,23,59,59);
function GetCount(){
dateNow = new Date();
amount = dateFuture.getTime() - dateNow.getTime();
delete dateNow;
// time is already past
if(amount < 0){
document.getElementById('countbox').innerHTML="Now!";
}
// date is still good
else{
days=0;hours=0;mins=0;secs=0;out="";
amount = Math.floor(amount/1000);
days=Math.floor(amount/86400);
amount=amount%86400;
hours=Math.floor(amount/3600);
amount=amount%3600;
mins=Math.floor(amount/60);
amount=amount%60;
secs=Math.floor(amount);
if(days != 0){out += days +" day"+((days!=1)?"s":"")+", ";}
if(days != 0 || hours != 0){out += hours +" hour"+((hours!=1)?"s":"")+", ";}
if(days != 0 || hours != 0 || mins != 0){out += mins +" minute"+((mins!=1)?"s":"")+", ";}
out += secs +" seconds";
document.getElementById('countbox').innerHTML=out;
setTimeout("GetCount()", 1000);
}
}
window.onload=function(){GetCount();}
//-->
</script>
-------------------------
So wirds grade angezeigt:
108 days, 7 hours, 21 minutes, 20 seconds
und ich hätte das gerne so:
108 Tage, 7 Stunden, 21 Minuten, 20 Sekunden