Countdown, bei Ende andere Seite

NFL
Hallo!

Gibt es eine Möglichkeit, dass man auf eine Seite einen Countdown, bis zum 1.1.07 00:00 Uhr laufen lässt und sobald es die Zeit ist ist die Seite mit anderem Inhalt gefüllt?

mfg
NFL
Schweinebacke
Ich gehe mal davon aus, dass du schon was gefunden hast. Sind ja nur noch ca. 12 Std.

Last Minet: Der Script

code:
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:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
<script type="text/javascript">
var Neu =  "Der neue Inhalt";
var DT_msPerDay, DT_msPerHour, DT_msPerMinute, DT_msPerSecond;
var DT_TimerOn, DT_TimerId;
function DT_showCount(dateBegin, dateEnd, boxB)
{var timeDiff=dateEnd.getTime()-dateBegin.getTime();
if (timeDiff<=0)
{boxB.value="* happy new year *";
document.getElementById("P3").innerHTML = Neu;
return(false);
}
else{
var dd=Math.floor(timeDiff/DT_msPerDay);
timeDiff=timeDiff-dd*DT_msPerDay;
var hh=Math.floor(timeDiff/DT_msPerHour);
timeDiff=timeDiff-hh*DT_msPerHour;
var mm=Math.floor(timeDiff/DT_msPerMinute);
timeDiff=timeDiff-mm*DT_msPerMinute;
var ss=Math.floor(timeDiff/DT_msPerSecond);
hh=(hh>=10?hh:"0"+hh);
mm=(mm>=10?mm:"0"+mm);
ss=(ss>=10?ss:"0"+ss);
if (dd <= 1) boxB.value=dd+" : "+hh+" : "+mm+" : "+ss;
else boxB.value=dd+" : "+hh+" : "+mm+" : "+ss;
if (dd == 0) boxB.value=dd+" : "+hh+" : "+mm+" : "+ss; return(true);}}
function DT_showDate(dateD, boxB){
var y=dateD.getYear();
var m=dateD.getMonth()+1;
var d=dateD.getDate();
var hh=dateD.getHours();
var mm=dateD.getMinutes();
var ss=dateD.getSeconds();
m=(m>=10?m:"0"+m);
d=(d>=10?d:"0"+d);
hh=(hh>=10?hh:"0"+hh);
mm=(mm>=10?mm:"0"+mm);
ss=(ss>=10?ss:"0"+ss);
boxB.value=d+"."+m+"."+y+"  "+hh+" : "+mm+" : "+ss;}
function DT_stopTimer(){
if (DT_TimerOn){
clearTimeout(DT_TimerId);
DT_TimerOn=false;}}
function DT_startTimer(){
var dateNow=new Date();
var dateEOT=new Date(countdown_datum);
var On=DT_showCount(dateNow, dateEOT, document.Ausgabe.Rest);
if (On){
DT_TimerId=setTimeout("DT_startTimer()", 1000);
DT_TimerOn=true;}
else DT_stopTimer();}
function DT_initTimer(){
DT_msPerDay=24*60*60*1000;
DT_msPerHour=60*60*1000;
DT_msPerMinute=60*1000;
DT_msPerSecond=1000;
DT_TimerOn=false;
DT_TimerId=null;
DT_stopTimer();
DT_startTimer();}
function countdown()
{DT_initTimer();}
var countdown_datum='January 1, 2006 00:00:00';  //January, February, March, April, May, June, July, August, September, October, November, December
</script>
<body onLoad="countdown();">
<div  align="center">
<div class=pos3 id=P3>Inhalt der Seite</div>
<div class=pos4 id=P4><form name="Ausgabe"><input size="20" name="Rest" value="Restzeit, bitte warten..." style="border: 1 inset #0099CC;background-color:#AEBCD6;text-align: center" readonly></form></div>
</div>
</body> 


im Anhang eine fertige Seite
NFL
Danke dir vielmals!
Ich habe es aber insofern gelöst, dass ich einfach die User 12 Stunden zuvor reingelassen habe! großes Grinsen

Grund: Ich muss um 13:00 Uhr weg...

Danke aber trotzdem!