![]() |
Яваскрипт... на дату и время
Подскажите повозможности Яваскрипт для показа времени и числа....
а также скрипт который в зависимости от времени суток выдавал надпись доброе утро утром, доброго дня днём..итд.. |
Ты прикалываешься?
a = new Date() b = a.getDate() document.write(""+b) |
Цитата:
Более интересный пример: Код:
<script language="JavaScript"><!-- getDate method -- Returns the day of the month for the specified date. getDay method -- Returns the day of the week for the specified date. getHours method -- Returns the hour for the specified date. getMinutes method -- Returns the minutes in the specified date. getMonth method -- Returns the month in the specified date getSeconds method -- Returns the seconds in the current time. getYear method -- Returns the year in the specified date. |
Время: 10:18. |
Время: 10:18.
© OSzone.net 2001-