moin moin zusammen ....
wer kann mir grade mal helfen den countdown externer Link
in meine Startseite self_index um zu bauen, ich bekomme es nicht hin ...
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<SCRIPT language=JavaScript> function init() { getTime(); } function getTime() { c1 = new Image(); c1.src = "counter/1.png"; c2 = new Image(); c2.src = "counter/2.png"; c3 = new Image(); c3.src = "counter/3.png"; c4 = new Image(); c4.src = "counter/4.png"; c5 = new Image(); c5.src = "counter/5.png"; c6 = new Image(); c6.src = "counter/6.png"; c7 = new Image(); c7.src = "counter/7.png"; c8 = new Image(); c8.src = "counter/8.png"; c9 = new Image(); c9.src = "counter/9.png"; c0 = new Image(); c0.src = "counter/0.png"; Cc = new Image(); Cc.src = "counter/middle.png"; later = new Date("June 7 2008 18:00:00"); now = new Date(); days = (later - now) / 1000 / 60 / 60 / 24; daysRound = Math.floor(days); hours = (later - now) / 1000 / 60 / 60 - (24 * daysRound); hoursRound = Math.floor(hours); minutes = (later - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound); minutesRound = Math.floor(minutes); seconds = (later - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound); secondsRound = Math.round(seconds); if (secondsRound <= 9) { document.images.g.src = c0.src; document.images.h.src = eval("c"+secondsRound+".src"); } else { document.images.g.src = eval("c"+Math.floor(secondsRound/10)+".src"); document.images.h.src = eval("c"+(secondsRound%10)+".src"); } if (minutesRound <= 9) { document.images.d.src = c0.src; document.images.e.src = eval("c"+minutesRound+".src"); } else { document.images.d.src = eval("c"+Math.floor(minutesRound/10)+".src"); document.images.e.src = eval("c"+(minutesRound%10)+".src"); } if (hoursRound <= 9) { document.images.y.src = c0.src; document.images.z.src = eval("c"+hoursRound+".src"); } else { document.images.y.src = eval("c"+Math.floor(hoursRound/10)+".src"); document.images.z.src = eval("c"+(hoursRound%10)+".src"); } if (daysRound <= 9999){ document.images.x.src = eval("c"+Math.floor((daysRound/1000)%10)+".src"); document.images.a.src = eval("c"+Math.floor((daysRound/100)%10)+".src"); document.images.b.src = eval("c"+Math.floor((daysRound/10)%10)+".src"); document.images.c.src = eval("c"+Math.floor(daysRound%10)+".src"); } if (daysRound <= 999){ document.images.x.src = Cc.src; document.images.a.src = eval("c"+Math.floor((daysRound/100)%10)+".src"); document.images.b.src = eval("c"+Math.floor((daysRound/10)%10)+".src"); document.images.c.src = eval("c"+Math.floor(daysRound%10)+".src"); } if (daysRound <= 99) { document.images.x.src = Cc.src; document.images.a.src = eval("c"+Math.floor((daysRound/10)%10)+".src"); document.images.b.src = eval("c"+Math.floor(daysRound%10)+".src"); document.images.c.src = Cc.src; } if (daysRound <= 9) { document.images.x.src = Cc.src; document.images.a.src = Cc.src; document.images.b.src = eval("c"+daysRound+".src"); document.images.c.src = Cc.src; } newtime = window.setTimeout("getTime();", 1000); } </SCRIPT>
Geschlossen | ||
Zurück zu HTML, PHP, SQL,... |