Kto by mi wedel prerobiť javascript dátum lebo mi ide o den dopredu diky wopred
<SCRIPT language=JavaScript>
<!--
function initArray()
{
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
today = new Date();
m=0; d=1; x=1;
var mena=new initArray(
"Nový rok","Alexandra","Daniela","Drahoslav","Andrea","Antónia","Bohuslava","Severín","Alexej"," Daša",
"Malvína","Ernest","Rastislav","Radovan","Dobroslav","Kristína","Nataša","Bohdana","Drahomíra a Mário","Dalibor a Sebastián",
"Vincent","Zora","Miloš","Timotej","Gejza","Tamara","Bohuš","Alfonz","Gašpar","Ema",
"Emil","Tatiana","Erika a Erik","Blažej","Veronika","Agáta","Dorota","Vanda","Zoja","Zdenko",
"Gabriela","Dezider","Perla","Arpád","Valentín","Pravoslav","Ida a Liana","Miloslava","Jaromír","V1lasta",
"Lívia","Eleonóra","Etela","Roman a Romana","Matej","Frederik a Frederika","Viktor","Alexander","Zlatica","Albín",
"Anežka","Bohumil a Bohumila","Kazimír","Fridrich","Radoslav a Radoslava","Tomáš","Alan a Alana","Františka","Branislav a Bruno",
"Angela a Angelika","Gregor","Vlastimil","Matilda","Svetlana","Boleslav","Ľubica","Eduard","Jozef"," Víťazoslav Klaudius",
"Blahoslav","Beňadik","Adrián","Gabriel","Marián","Emanuel","Alena","Soňa","Miroslav","Vieroslav a Vieroslava",
"Benjamín","Hugo","Zita","Richard","Izidor","Miroslava","Irena","Zoltán","Albert","Milena",
"Igor","Július","Estera","Aleš","Justína","Fedor","Dana a Danica","Rudolf","Valér","Jela",
"Marcel","Ervín","Slavomír","Vojtech","Juraj","Marek","Jaroslava","Jaroslav","Jarmila","Lea",
"Anastázia","Sviatok práce","Žigmund","Galina","Florián","Lesana a Lesia","Hermína","Monika","Ingrida","Roland",
"Viktória","Blažena","Pankrác","Servác","Bonifác","Žofia","Svetozár","Gizela","Viola","Gertrúda",
"Bernard","Zina","Júlia a Juliána","Želmíra","Ela","Urban","Dušan","Iveta","Viliam",
"Vilma","Ferdinand","Petrana a Petronela","Žaneta","Xénia a Oxana","Karolína","Lenka","Laura","Norbert","Róbert",
"Medard","Stanislava","Margaréta","Dobroslava","Zlatko","Anton","Vasil","Vít","Blanka a Bianka","Adolf","Vratislav","Alfréd","Valéria","Alojz","Paulína","Sidónia","Ján","Olívia a Tadeáš","Adriána","Ladislav a Ladislava",
"Beáta","Peter / Pavol a Petra","Melánia","Diana","Berta","Miloslav","Prokop","svätý Cyril a Metod","Patrik a Patrícia","Oliver",
"Ivan","Lujza","Amália","Milota","Nina","Margita","Kamil","Henrich","Drahomír","Bohuslav",
"Kamila","Dušana","Iľja a Eliáš","Daniel","Magdaléna","Oľga","Vladimír","Jakub","Anna a Hana","Božena","Krištof",
"Marta","Libuša","Ignác","Božidara","Gustáv","Jerguš","Dominik a Dominika","Hortenzia","Jozefína","Štefánia",
"Oskár","Ľubomíra","Vavrinec","Zuzana","Darina","Ľubomír","Mojmír","Marcela","Leonard","Milica",
"Elena a Helena","Lýdia","Anabela","Jana","Tichomír","Filip","Bartolomej","Ľudovít","Samuel","Silvia",
"Augustín","Nikola a Nikolaj","Ružena","Nora","Drahoslava","Linda","Belo","Rozália","Regína","Alica",
"Marianna","Miriama","Martina","Oleg","Bystrík","Mária","Ctibor","Ľudomil a Ľubomíra","Jolana","Ľudmila",
"Olympia","Eugénia","Konštantín","Ľuboslav a Ľuboslava","Matúš","Móric","Zdenka","Ľuboš a Ľubor","Vladislav","Edita",
"Cyprián","Václav","Michal a Michaela","Jarolím","Arnold","Levoslav","Stela","František","Viera","Natália",
"Eliška","Brigita","Dionýz","Slavomíra","Valentína","Maximilián","Koloman","Boris","Terézia","Vladimíra",
"Hedviga","Lukáš","Kristián","Vendelín","Uršuľa","Sergej","Alojzia","Kvetoslava","Aurel","Demeter",
"Sabína","Dobromila","Klára","Simona a Šimon","Aurélia","Denis a Denisa","Pamiatka zosnulých","Hubert","Karol","Imrich",
"Renáta","René","Bohumír","Teodor","Tibor","Martin a Maroš","Svätopluk","Stanislav","Irma","Leopold",
"Agnesa","Klaudia","Eugen","Alžbeta","Félix","Elvíra","Cecília","Klement","Emília","Katarína",
"Kornel","Milan","Henrieta","Vratko","Ondrej a Andrej","Edmund","Bibiána","Oldrich","Barbora a Barbara","Oto",
"Mikuláš","Ambróz","Marína","Izabela","Radúz","Hilda","Otília","Lucia","Branislava a Bronislava","Ivica",
"Albína","Kornélia","Sláva a Slávka","Judita","Dagmara","Bohdan","Adela","Nadežda","Adam a Eva","1. sviatok vianočný",
"Štefan","Foloména","Ivana a Ivona","Milada","Dávid","Silvester"
);
if (today.getMonth()+1==2) m=31; if (today.getMonth()+1==3) m=60; if (today.getMonth()+1==4) m=91;
if (today.getMonth()+1==5) m=121; if (today.getMonth()+1==6) m=152; if (today.getMonth()+1==7) m=182;
if (today.getMonth()+1==8) m=213; if (today.getMonth()+1==9) m=244; if (today.getMonth()+1==10) m=274;
if (today.getMonth()+1==11) m=305; if (today.getMonth()+1==12) m=335;
d=today.getDate(); x=m+d;
document.write(mena[x]);
// -->
</SCRIPT>
d=today.getDate(); x=m+d+1;
<SCRIPT language=JavaScript>
<!--
function initArray()
{
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++)
this[i+1] = initArray.arguments[i];
}
today = new Date();
m=0; d=1; x=1;
var mena=new initArray(
"Nový rok","Alexandra","Daniela","Drahoslav","Andrea","Antónia","Bohuslava","Severín","Alexej"," Daša",
"Malvína","Ernest","Rastislav","Radovan","Dobroslav","Kristína","Nataša","Bohdana","Drahom íra a Mário","Dalibor a Sebastián",
"Vincent","Zora","Miloš","Timotej","Gejza","Tamara","Bohuš","Alfonz","Gašpar","Ema",
"Emil","Tatiana","Erika a Erik","Blažej","Veronika","Agáta","Dorota","Vanda","Zoja","Zdenko",
"Gabriela","Dezider","Perla","Arpád","Valentín","Pravoslav","Ida a Liana","Miloslava","Jaromír","V1lasta",
"Lívia","Eleonóra","Etela","Roman a Romana","Matej","Frederik a Frederika","Viktor","Alexander","Zlatica","Albín",
"Anežka","Bohumil a Bohumila","Kazimír","Fridrich","Radoslav a Radoslava","Tomáš","Alan a Alana","Františka","Branislav a Bruno",
"Angela a Angelika","Gregor","Vlastimil","Matilda","Svetlana","Boleslav","źubica","Eduard","Jozef"," Víťazoslav Klaudius",
"Blahoslav","Beňadik","Adrián","Gabriel","Marián","Emanuel","Alena","Soňa","Miroslav","Vie roslav a Vieroslava",
"Benjamín","Hugo","Zita","Richard","Izidor","Miroslava","Irena","Zoltán","Albert","Milena" ,
"Igor","Július","Estera","Aleš","Justína","Fedor","Dana a Danica","Rudolf","Valér","Jela",
"Marcel","Ervín","Slavomír","Vojtech","Juraj","Marek","Jaroslava","Jaroslav","Jarmila","Le a",
"Anastázia","Sviatok práce","Žigmund","Galina","Florián","Lesana a Lesia","Hermína","Monika","Ingrida","Roland",
"Viktória","Blažena","Pankrác","Servác","Bonifác","Žofia","Svetozár","Gizela","Viola","Ger trúda",
"Bernard","Zina","Júlia a Juliána","Želmíra","Ela","Urban","Dušan","Iveta","Viliam",
"Vilma","Ferdinand","Petrana a Petronela","Žaneta","Xénia a Oxana","Karolína","Lenka","Laura","Norbert","Róbert",
"Medard","Stanislava","Margaréta","Dobroslava","Zlatko","Anton","Vasil","Vít","Blanka a Bianka","Adolf","Vratislav","Alfréd","Valéria","Alojz","Paulína","Sidónia","Ján","Olívia a Tadeáš","Adriána","Ladislav a Ladislava",
"Beáta","Peter / Pavol a Petra","Melánia","Diana","Berta","Miloslav","Prokop","svätý Cyril a Metod","Patrik a Patrícia","Oliver",
"Ivan","Lujza","Amália","Milota","Nina","Margita","Kamil","Henrich","Drahomír","Bohuslav",
"Kamila","Dušana","Ižja a Eliáš","Daniel","Magdaléna","Ožga","Vladimír","Jakub","Anna a Hana","Božena","Krištof",
"Marta","Libuša","Ignác","Božidara","Gustáv","Jerguš","Dominik a Dominika","Hortenzia","Jozefína","Štefánia",
"Oskár","źubomíra","Vavrinec","Zuzana","Darina","źubomír","Mojmír","Marcela","Leonard","Mi lica",
"Elena a Helena","Lýdia","Anabela","Jana","Tichomír","Filip","Bartolomej","źudovít","Samuel","Silvi a",
"Augustín","Nikola a Nikolaj","Ružena","Nora","Drahoslava","Linda","Belo","Rozália","Regína","Alica",
"Marianna","Miriama","Martina","Oleg","Bystrík","Mária","Ctibor","źudomil a źubomíra","Jolana","źudmila",
"Olympia","Eugénia","Konštantín","źuboslav a źuboslava","Matúš","Móric","Zdenka","źuboš a źubor","Vladislav","Edita",
"Cyprián","Václav","Michal a Michaela","Jarolím","Arnold","Levoslav","Stela","František","Viera","Natália",
"Eliška","Brigita","Dionýz","Slavomíra","Valentína","Maximilián","Koloman","Boris","Terézi a","Vladimíra",
"Hedviga","Lukáš","Kristián","Vendelín","Uršuža","Sergej","Alojzia","Kvetoslava","Aurel"," Demeter",
"Sabína","Dobromila","Klára","Simona a Šimon","Aurélia","Denis a Denisa","Pamiatka zosnulých","Hubert","Karol","Imrich",
"Renáta","René","Bohumír","Teodor","Tibor","Martin a Maroš","Svätopluk","Stanislav","Irma","Leopold",
"Agnesa","Klaudia","Eugen","Alžbeta","Félix","Elvíra","Cecília","Klement","Emília","Katarí na",
"Kornel","Milan","Henrieta","Vratko","Ondrej a Andrej","Edmund","Bibiána","Oldrich","Barbora a Barbara","Oto",
"Mikuláš","Ambróz","Marína","Izabela","Radúz","Hilda","Otília","Lucia","Branislava a Bronislava","Ivica",
"Albína","Kornélia","Sláva a Slávka","Judita","Dagmara","Bohdan","Adela","Nadežda","Adam a Eva","1. sviatok vianočný",
"Štefan","Foloména","Ivana a Ivona","Milada","Dávid","Silvester"
);
if (today.getMonth()+1==2) m=31; if (today.getMonth()+1==3) m=60; if (today.getMonth()+1==4) m=91;
if (today.getMonth()+1==5) m=121; if (today.getMonth()+1==6) m=152; if (today.getMonth()+1==7) m=182;
if (today.getMonth()+1==8) m=213; if (today.getMonth()+1==9) m=244; if (today.getMonth()+1==10) m=274;
if (today.getMonth()+1==11) m=305; if (today.getMonth()+1==12) m=335;
d=today.getDate(); x=m+d;
document.write(mena[x-1]);
// -->
</SCRIPT>
Sojkovec: x-1 bude predchadzajuci den, on chcel nasledujuci. Alebo ze by som zle pochopil :)
lacop to twoje nefunguje a Sojkovec co si tam zmenil?
lacop: <quote>lebo mi ide o den dopredu diky wopred</quote>
no mne ukazuje o den dopredu a ja chcem aby ukazowal o den spät
ale ked tam dam x-1 tak sa nist nezmeni!
Zmeni. Zkousel jsem to. Vymaz si cache.
Ahojte ma niekto takyto zoznam aj s ceskymi menami? Prosim ak mate mozete mi to hodit na mail?
Třeba http://svatky.pavucina.com/svatky-kalendar-jmena.html
Do google zadej vyhledat - javascript svátek - pak uhni, ať tě to nezasype...
<HTML>Gratuluji, Spajdo, exhumoval jsi pět let starou mrtvolu. Zamykám.<style>form { display: none; }</style></HTML>