listscript fcgi id=105













Kiedy święta?  [skrypty]
Tak długo jeszcze do świąt . . .
Uwaga! Strona musi mieć z znaczniku BODY funkcje OnLoad=clock()




<H1 ALIGN=CENTER><span id="Clock" style="position:relative;"></span></h1>

<SCRIPT LANGUAGE="JavaScript"><!--
function clock() {
if (!document.layers && !document.all) return;
today = new Date();
intDate = today.getDate();
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
intMonth = today.getMonth()+1 ;
intYear = today.getFullYear();
hours = intHours;
hours = (23 - hours);
minutes = intMinutes;
minutes = (59 - minutes);
seconds = intSeconds;
seconds = (59 - seconds);

if (intYear % 4 == 0 && intYear % 100 != 0 || intYear % 400 == 0){
if (intMonth == 1) {month = "Only "; date = (359 - intDate);}
if (intMonth == 2) {month = "Only "; date = (328 - intDate);}}


else{
if (intMonth == 1) {month = "Tylko "; date = (358 - intDate);}
if (intMonth == 2) {month = "Tylko "; date = (327 - intDate);}}

if (intMonth == 3) {month = "Tylko "; date = (299 - intDate);}
if (intMonth == 4) {month = "Tylko "; date = (268 - intDate);}
if (intMonth == 5) {month = "Tylko "; date = (238 - intDate);}
if (intMonth == 6) {month = "Tylko "; date = (207 - intDate);}
if (intMonth == 7) {month = "Tylko "; date = (177 - intDate);}
if (intMonth == 8) {month = "Tylko "; date = (146 - intDate);}
if (intMonth == 9) {month = "Tylko "; date = (115 - intDate);}
if (intMonth == 10) {month = "Tylko "; date = (85 - intDate);}
if (intMonth == 11) {month = "Tylko "; date= (54 - intDate);}
if (intMonth == 12) {month = "Tylko "; date = (24 - intDate);}

if (date == 1 ){date = ("0"+date+" Dzień&nbsp; ");}
if (date != 1 && date < 10 && date >=0){date = ("0"+date+" Dni ");}
if (date > 9){date = (date+" Dni ");}
if (hours ==1 ){hours = ("0"+hours+" Godzina&nbsp; ");}
if (hours != 1 && hours < 10){hours = ("0"+hours+" Godzin ");}
if (hours > 9){hours = (hours+" Godzin ");}
if (minutes == 1){minutes = ("0"+minutes+" Minuta&nbsp; ");}
if (minutes != 1 && minutes < 10){minutes = ("0"+minutes+" Minuty ");}
if (minutes > 9){minutes = (minutes+" Minuty ");}
if (seconds == 1){seconds = ("0"+seconds+" Sekunda&nbsp;"+" do Świąt!");}
if (seconds != 1 && seconds < 10){seconds = ("0"+seconds+" Sekund do Świąt!");}
if (seconds > 9){seconds = (seconds+" Sekund do Świąt!");}
if (date < 0){month = "Wesołych ";date = " Świąt ";hours = " i ";minutes = " Szczęśliwego ";seconds = "Nowego Roku!";}
timeString = month+date+hours+minutes+seconds;

if (document.layers) {
document.layers.Clock.document.write("<H1 ALIGN=CENTER>"+timeString+"</H1>");
document.layers.Clock.document.close();
}
else
if (document.all)
Clock.innerHTML = timeString;
setTimeout("clock()", 1000);
}
//--></script>


Wyszukiwarka

Podobne podstrony:
listscript fcgi id=33
listscript fcgi id=96
listscript fcgi id=2
listscript fcgi id=61
listscript fcgi id=45
listscript fcgi id=6
listscript fcgi id=124
listscript fcgi id=90
listscript fcgi id=87
listscript fcgi id=57
listscript fcgi id=54
listscript fcgi id=22
listscript fcgi id=151
listscript fcgi id=5
listscript fcgi id=39
listscript fcgi id=47
listscript fcgi id=89
listscript fcgi id=157

więcej podobnych podstron