una Posted February 26, 2008 Report Posted February 26, 2008 Sveicinati velreiz, juz butu tik laipni un palidzetu man ar siem js skripriem? man vajadzetu visus, ja butu tik laipni, bet viss vairak man ir nepieciesams laika skripts. maza bildite lai saprastu. :)
Klez Posted February 26, 2008 Report Posted February 26, 2008 (edited) vispaar jau mekleeshanu vajag izmantot.... labajaa auksheejaa stuurii ir ... http://lv.php.net/date function datums(){ $diena = date("w"); $menesis = date("n"); switch ($menesis){ case 1: $men = 'janvāris'; break; case 2: $men = 'februāris'; break; case 3: $men = 'marts'; break; case 4: $men = 'aprīlis'; break; case 5: $men = 'maijs'; break; case 6: $men = 'jūnijs'; break; case 7: $men = 'jlijs'; break; case 8: $men = 'augusts'; break; case 9: $men = 'septembris'; break; case 10: $men = 'oktobris'; break; case 11: $men = 'novembris'; break; case 12: $men = 'decembris'; break; } switch($diena){ case 0: $d = 'svētdiena'; break; case 1: $d = 'pirmdiena'; break; case 2: $d = 'otrdiena'; break; case 3: $d = 'trešdiena'; break; case 4: $d = 'ceturdiena'; break; case 5: $d = 'piektdiena'; break; case 6: $d = 'sestdiena'; break; } return $d . ', ' . date("Y") . '.gada ' . date("j") . '.' . $men; } echo datums(); Edited February 26, 2008 by Klez
una Posted February 26, 2008 Author Report Posted February 26, 2008 bet tas ir prieks .php bet man vajadzetu prieks .html
andrisp Posted February 26, 2008 Report Posted February 26, 2008 var mēģināt google: javascript clock
Recommended Posts