|
Скрипт 1: Code <center><font color="#000000" face="Verdana"><strong><script language="JavaScript"> <!--begin allcity.clan.su var h=(new Date()).getHours(); if (h > 23 || h <7) document.write('Привет лунатикам! :)') ; if (h > 6 && h < 12) document.write('Доброе утро! Как спалось? :)'); if (h > 11 && h < 19) document.write('Добрый день!'); if (h > 18 && h < 24) document. write('Привет! Уже вечер...'); //--> </script></strong></font></center> Скрипт 2: Code <script language="JavaScript"> function process(){} today = new Date() if((today.getHours() < 12) && (today.getHours() >= 6)) { document.write("<font color=#60befd>Доброе вам утро</font>")} if((today.getHours() >= 12) && (today.getHours() < 18)) { document.write("<font color=#8acf1d>Добрый день</font>")} if((today.getHours() >= 18) && (today.getHours() <= 23)) { document.write("<font color=#ee5000>Добрый вечер</font>")} if((today.getHours() >= 0) && (today.getHours() < 4)) { document.write("<font color=#878787>Вы сегодня поздновато, </font>")} if((today.getHours() >= 4) && (today.getHours() <= 6)) { document.write("<font color=#d7d7d7>Вы сегодня рановато, </font>")}
</script>
uFan - Скрипты для uCoz, Шаблоны, Фильмы онлайн, и тд..[ Получить прямую ссылку на новость ][ Скрыть ссылки ]
|
|
Категория: Скрипты для uCoz | Добавил: AZOT |
Просмотров: 423 | Загрузок: 0
| Рейтинг: 0.0/0 |
|
|