Hallo,
Gibt es so Countdowns das da gerade so anzeigt z.B : 5 h , 4 min , 0 sec bis unser War !
Das möchte ich halt in meine Page machen
thx im vorraus
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
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 | < html > < head > < title >WE-Counter</ title > < script language = "JavaScript" > ///// Angaben für das Wochenende: ///// // Wochentag in Nummer (Sonntag=0, Montag=1,...,Samstag=6): var WEtag = 5; // Stunde wann das WE beginnen soll: var WEstd = 18; ///// Ende der Angaben ///// function WEcounter() { jetzt = new Date(); tag = jetzt.getDay(); stunde = jetzt.getHours(); minute = jetzt.getMinutes(); sekunde = jetzt.getSeconds(); if((tag==WEtag) && (stunde>=WEstd) || (tag>WEtag) || (tag==0)) { document.Countdown.zaehler.value="Wochenende"; } else { if(stunde< WEstd ) { a = WEtag - tag; ((minute==0) && (sekunde==0))? b = WEstd -stunde:b=(WEstd-stunde)-1; (sekunde==0)? c = 60 -minute:c=(60-minute)-1;(c==60)? c = "00" :c =c; (sekunde==0)? d = "00" :d = 60 -sekunde; } else { a = (WEtag-1) - tag; ((minute==0) && (sekunde==0))? b = 24 -stunde:b=(24-stunde)-1; (sekunde==0)? c = 60 -minute:c=(60-minute)-1;(c==60)? c = "00" :c =c; (sekunde==0)? d = "00" :d = 60 -sekunde; } if((a==0) && (stunde>=WEstd)) {a=0; ((minute==0) && (sekunde==0))?b=24-stunde+WEstd:b=23-stunde+WEstd; } document.Countdown.zaehler.value="Noch "+a+" Tag(e), "+b+" Stunde(n), "+c+" Minute(n) und "+d+" Sekunde(n) bis zum Wochende"; } setTimeout("WEcounter()", 1000); } </ script > </ head > < body text = "#000000" bgcolor = "#000000" link = "#FF0000" alink = "#FF0000" vlink = "#FF0000" onLoad = "WEcounter()" > < form name = "Countdown" > < input type = "Text" name = "zaehler" value = "" size = "100" style = "font-family: verdana; font-weight: bold; font-size: 11px; background-color: #1a1a1a; border: 1px #6a6a6a solid; color: gold; text-align: center;" > </ form > </ body > </ html > |
1 2 3 4 | Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /is/htdocs/wp1013538_LAMRTZNJ9P/www/ilch/ilch/forum/user/imgs.php on line 84 back Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /is/htdocs/wp1013538_LAMRTZNJ9P/www/ilch/ilch/forum/user/imgs.php on line 90 | next |
Geschlossen | ||
![]() |
Zurück zu Allgemein |