Countdown .. funzt net richtig

Hi

Das anchfolgende Script funktioniert in Opera und Firefox aber im IE kommt debugfehler. Warum?
Kann sich mal bitte jemand noch mal den Quelltext anschauen, das wär echt net, danke.

Und wie bekomm ich es hin das auch vor Tage 01 und nich 1 steht?


var now = new Date();
var event = new Date(„May 26 2005 19:07:00“);
var mseconds, seconds, minutes, hours, days;
var tmseconds;

ID=window.setTimeout(„update();“, 10);

function update()
{
now = new Date();

mseconds = (event - now);
seconds = mseconds / 1000;

days = seconds / 86400;
days = Math.floor(days);

hours = (seconds - days * 86400) / 3600;
hours = Math.floor(hours);

minutes = ((seconds - (days * 86400 + hours * 3600)) / 60);
minutes = Math.floor(minutes);

seconds = ((seconds - (days * 86400 + hours * 3600 + minutes * 60)));
seconds = Math.floor(seconds);

mseconds = (mseconds - ((days * 86400 + hours * 3600 + minutes * 60 +
seconds) * 1000));
mseconds /= 10;
mseconds = Math.floor(mseconds);

if(hours < 10)
hours = ‚0‘ + hours;
if(minutes < 10)
minutes = ‚0‘ + minutes;
if(seconds < 10)
seconds = ‚0‘ + seconds;
if(mseconds < 10)
mseconds = ‚0‘ + mseconds;

document.getElementById(‚x_days‘).innerHTML=days;
document.getElementById(‚x_hours‘).innerHTML=hours;
document.getElementById(‚x_minutes‘).innerHTML=minutes;
document.getElementById(‚x_seconds‘).innerHTML=seconds;
document.getElementById(‚x_mseconds‘).innerHTML=mseconds;
ID=window.setTimeout(„update();“,10);
}

MfG Tobias & Danke

Achso noch ein paar Infos:

http://bitethedust.no-ip.org
Das ist die Seite wo der Countdown eingebunden ist.
Ist leider nur online, wenn auch mein PC online ist :frowning:

Und noch eine Frage, ist es leicht den Code von Javascript auf Java, also serverseitige Seiten verarbeitung wie php, umzustellen?

Danke …

Das anchfolgende Script funktioniert in Opera und Firefox aber
im IE kommt debugfehler. Warum?

Vielleicht hilft das: http://internet-partner.de/webmaster/java-script/cou…

Gruß aus Hamburg
Knud Schiffmann
http://internet-partner.de