![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 80 Pomógł: 0 Dołączył: 12.02.2008 Skąd: Polska ;] Ostrzeżenie: (0%) ![]() ![]() |
Chciałbym aby ktoś podał mi kod albo stronkę na której będzie Skrypt JS, który wpisze aktualną date w formie RRRR-DD-MM w pole INPUT.
Mam coś takiego ale nie chce wejść w formularz:
I mam takie pytanie: Czy jeśli po kliknięciu SUBMIT ta data zapisze się do Bazy MySQL (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Ten post edytował Karpadoor 2.03.2008, 13:09:37 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 121 Pomógł: 0 Dołączył: 22.09.2007 Ostrzeżenie: (20%) ![]() ![]() |
Cytat <script language="javascript"> <!--W3e JAVAscript Preset var timerID = null; var timerRunning = false; function stopclock() { if(timerRunning) clearTimeout(timerID) timerRunning = false; } function startclock() { stopclock(); showtime(); } function showtime() { var now = new Date(); var hours = now.getHours(); var minutes = now.getMinutes(); var seconds = now.getSeconds(); var timeValue = "" + ((hours > 12) ? hours - 12 : hours); timeValue += ((minutes < 10) ? ":0" : ":") + minutes; timeValue += ((seconds < 10) ? ":0" : ":") + seconds; timeValue += (hours >= 12) ? " P.M." : " A.M."; document.clock.face.value = timeValue; timerID = setTimeout("showtime()",1000); timerRunning = true; } //--> </script> <form name="clock" onSubmit="0"> <input type="text" name="face" size="24"> </form> <script>startclock();</script> i edytuj do swoich potrzeb ;] Ten post edytował ApC 2.03.2008, 14:24:00 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 00:39 |