Ivanыч Admin
Сообщения : 120 Дата регистрации : 2009-11-12
| Тема: Скрипт - Показать дату Вт Ноя 24, 2009 9:47 pm | |
| - Код:
-
<SCRIPT LANGUAGE="javascript">
var now = new Date(); var textout; var month = now.getMonth(); var date = now.getDate();
if (month==0) textout="январь"; if (month==1) textout="февраль"; if (month==2) textout="март"; if (month==3) textout="апрель"; if (month==4) textout="май"; if (month==5) textout="июнь"; if (month==6) textout="июль"; if (month==7) textout="август"; if (month==8) textout="сентябрь"; if (month==9) textout="октябрь"; if (month==10) textout="ноябрь"; if (month==11) textout="декабрь";
textout += ", " + date; document.write ("<font size=2 color=202020><strong>Сегодня " + textout + "-е число.</strong></font>"); </script> | |
|