Главная | Регистрация | Вход Вы вошли как Гость | Группа "Гости"Приветствую Вас Гость | RSS|Soft
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Приветствие в зависимости от времени суток
molokoДата: Четверг, 18.12.2008, 15:31 | Сообщение # 1
Рядовой
Группа: Администраторы
Сообщений: 6
Репутация: -1
Статус: Offline
скрипт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>


<a target="_blank" href="http://userbars.ru/"><img src="http://img519.imageshack.us/img519/1291/icq4pg4.png" border="0"></a>
 
  • Страница 1 из 1
  • 1
Поиск:

Design by PriFaNtom. Copyright MEGAsoft © 2026
Создать бесплатный сайт с uCoz