Главная | Регистрация | ВходПриветствую Вас Гость | RSS
[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум » Web Мастерам » Сктипты для UcoZ » Автоматическое поздравления с днюхой
Автоматическое поздравления с днюхой
nyxaДата: Среда, 13.01.2010, 18:26 | Сообщение # 1
ADMIN
Группа: Администраторы
Сообщений: 100
1. Создаем глобальный блок POZD
2. Вставляем код

Code
<?if($USER_BIRTHDAY$)?>
<style type="text/css">.cpmpopup {position:absolute;top:0px;left:0px;width:100%}div > div.cpmpopup {position:fixed;}</style>
<!--[if gte IE 5.5]><![if lt IE 8]><style type="text/css">div#upmpopup {width:expression(((ignoreMe=(document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth))<200?200:        ignoreMe)+'px'); position:absolute;top:expression((ignoreMe2=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+'px'); left:expression((ignoreMe=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)+'px'); }</style><![endif]><![endif]-->
<div id="ppmpopup">
<div class="cpmpopup" id="upmpopup">
<style type="text/css">
#newpm { position:absolute; height:160px; width:450px; padding:4px; background-color:#FDFDFD; border:1px solid #BBBBBB; font-family:Tahoma,Arial,Sans-Serif; font-size:11px; line-height:135%; filter:progid:DXImageTransform.Microsoft.Shadow(color=#CACACA,direction=135,strength=4); }
#newpmheader { padding-left:5px; padding-right:5px; padding-top:2px; height:20px; color:#000000; font-weight:bold; background-color:#696969; font-family:Tahoma,Arial,Sans-Serif; font-size:11px; cursor:move; }
#newpm a{ background:transparent; color:#4191BA; text-decoration:none; }
#newpm a:hover{ background:transparent; color:#FF0000; text-decoration:underline; }
</style>
<div id="newpm" style="display:none;">
<div id="newpmheader">
<div style="float:right"><a href="javascript://" onclick="document.getElementById('newpm').style.display='none'; return false;">[X]</a></div>
<div title="Поздравление">Поздравление</div>
</div>

<center> Привет <b>$USERNAME$</b></center>
</p>
<fieldset>
<legend><font style="font-size:12px; color:335EA8;">Администрация поздравляет вас!</font></legend>
<div style="overflow:auto; width:430px; height:45px;">
<font style="font-size:9px;"><?if($USER_GENDER_ID$="2")?><?else?><B>$USERNAME$! От лица всей команды сайта, поздравляю тебя с Днем Рождения!!! Успехов тебе, и всего самого наилучшего!</B><?endif?><?if($USER_GENDER_ID$="1")?><?else?><B>Приветик солнышко! Хочу тебя поздравить с Днем Рождения! Пожелать тебе всего самого лучшего! Чтобы все твои желания исполнились.</B><?endif?></font>
<br>
</div>
</fieldset>
<div align="right" style="font-size:12px;">
· <a href="javascript://" onclick="document.getElementById('newpm').style.display='none'">Закрыть</a>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="http://radiations.ru/files/2/npbms.js"></script>
<script type="text/javascript">document.getElementById("ppmpopup").style.height=document.getElementById("upmpopup").offsetHeight+'px'; </script>
<?endif?>
 
Форум » Web Мастерам » Сктипты для UcoZ » Автоматическое поздравления с днюхой
  • Страница 1 из 1
  • 1
Поиск: