![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 4 Pomógł: 0 Dołączył: 2.05.2005 Ostrzeżenie: (0%) ![]() ![]() |
Witam serdecznie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Mam taki skrypcik: <script language="javascript"> var DDMMYY =0 var MMDDYY =1 function getdate(mode) { var now = new Date(); var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate(); if (mode==DDMMYY) var MonthDayYear =(dayNr+"."+(now.getMonth()+1)+"."+now.getFullYear()); else var MonthDayYear =((now.getMonth()+1)+"."+dayNr+"."+now.getFullYear()); return MonthDayYear; } function gettime() { var now = new Date(); var ampm = (now.getHours() >= 12) ? " P.M." : " A.M." var hours = now.getHours(); hours = ((hours > 12) ? hours - 12 : hours); var minutes = ((now.getMinutes() < 10) ? ":0" : ":") + now.getMinutes(); var seconds = ((now.getSeconds() < 10) ? ":0" : ":") + now.getSeconds(); var TimeValue =(" " + hours + minutes + seconds + " " + ampm); return TimeValue; } </script> <script language="javascript">document.write(getdate(DDMMYY));</script> Mecze sie z nim okrutnie, nie moge poradzic sobie z tym, aby miesiac byl wyswietlany w formie "05", czyli z zerem (oczywiscie dla 9 pierwszych miesiecy) (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) I jeszcze jedno, mam go w <body> a chcialbym wyswietlac po "src" z pliku - co zrobic? Prosze o pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) pozdrawiam (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Ten post edytował preze$$$ 3.05.2005, 18:43:12 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 6.10.2025 - 09:17 |