Главная » Файлы » Скрипты uCoz |
Подарок к Новому году (на форум)
09.12.2009, 19:55 | |
Скрипт автоматически раздает Пользователям подарки в виде разных Установка : Заходим Главная » Управление дизайном » Форум »Общий вид страниц форума ... Там перед тегом </head> ставим это:
Code <style> div.user{width:140px;} div.img{position:relative;} </style> Потом идем в Главная » Управление дизайном » Форум »Вид материалов. Удаляем весь код и вставляем этот :
Code <table border="0" width="100%" cellspacing="1" cellpadding="2" class="postTable"> <tr><td width="23%" class="postTdTop" align="center"><a class="postUser" href="javascript://" onClick="emoticon('$USERNAME$,');return false;">$USERNAME$</a></td><td class="postTdTop">Дата: $WDAY$, $DATE$, $TIME$ | Сообщение # $NUMBER$</td></tr> <tr><td class="postTdInfo" valign="top"> <table width="100%" cellpadding="0" cellspacing="0" border="0" align="center"> <tr> <td style="padding:10px 0 10px 0;vertical-align:top;" align="center"> <div class="user"> <div class="img"> <img src="$AVATAR_URL$" width="150px"> <script language="JavaScript"> model=12612; presents=''; var n; if(model>=1) presents='1' if(model>=2) presents='2' if(model>=3) presents='3' if(model>=4) presents='4' if(model>=5) presents='5' if(model>=750) presents='6' if(model>=900) presents='7' if(model>=1150) presents='8' if(model>=1300) presents='9' if(model>=1450) presents='10' if(model>=1600) presents='11' if(model>=1750) presents='12' if(model>=1900) presents='13' if(model>=2150) presents='14' if(model>=2300) presents='15' if(model>=2450) presents='16' if(model>=2600) presents='17' if(model>=2750) presents='18' if(model>=2900) presents='19' if(model>=3150) presents='20' if(model>=3300) presents='21' if(model>=3450) presents='22' if(model>=3600) presents='23' if(model>=3750) presents='24' if(model>=3900) presents='25' if(model>=4150) presents='26' if(model>=4300) presents='27' if(model>=4450) presents='28' if(model>=4600) presents='29' if(model>=4750) presents='30' if(model>=4900) presents='31' if(model>=5150) presents='99' if(model>=5300) presents='33' if(model>=5450) presents='34' if(model>=5600) presents='35' if(model>=5750) presents='36' if(model>=5900) presents='37' if(model>=6150) presents='38' if(model>=6300) presents='39' if(model>=6450) presents='40' if(model>=6600) presents='41' if(model>=6750) presents='42' if(model>=6900) presents='43' if(model>=7150) presents='44' if(model>=7300) presents='45' if(model>=7450) presents='46' if(model>=7600) presents='47' if(model>=7750) presents='48' if(model>=7900) presents='49' if(model>=8150) presents='50' if(model>=8300) presents='51' if(model>=8450) presents='52' if(model>=8600) presents='53' if(model>=8750) presents='54' if(model>=8900) presents='55' if(model>=9150) presents='56' if(model>=9300) presents='57' if(model>=9450) presents='58' if(model>=9600) presents='59' if(model>=9750) presents='60' if(model>=9900) presents='61' if(model>=10150) presents='62' if(model>=10300) presents='63' if(model>=10450) presents='64' if(model>=10600) presents='65' if(model>=10750) presents='66' if(model>=10900) presents='67' if(model>=11150) presents='68' if(model>=11300) presents='69' if(model>=11450) presents='70' if(model>=11600) presents='71' if(model>=11750) presents='72' if(model>=11900) presents='73' if(model>=12150) presents='74' if(model>=12300) presents='75' if(model>=12450) presents='76' if(model>=12600) presents='77' if(model>=12750) presents='78' if(model>=12900) presents='79' if(model>=13150) presents='80' if(model>=13300) presents='81' if(model>=13450) presents='82' if(model>=13600) presents='83' if(model>=13750) presents='84' if(model>=13900) presents='85' if(model>=14150) presents='86' if(model>=14300) presents='87' if(model>=14450) presents='88' if(model>=14600) presents='89' if(model>=14750) presents='90' if(model>=14900) presents='91' if(model>=15150) presents='92' if(model>=15300) presents='93' if(model>=15450) presents='94' if(model>=15600) presents='95' if(model>=15750) presents='96' if(model>=15900) presents='97' document.write('<img class="png" width="60" height="60" style="background:url(\'http://benq.do.am/images/gifts/'); document.write(presents); document.write('.png\'); position: absolute; left: -28px; top: -12px; " src="http://benq.do.am/images/gifts/white.gif" title="Подарок на наступающий новый 2010 год" border="0">'); </script> </div> </div> </td> </tr> </table> <?if($USER_TITLE$)?><div class="postRankName">$USER_TITLE$</div><?else?><div class="postRankName">$USER_RANK_NAME$</div><?endif?> <?if($GROUP_ICON$)?><div class="postRankIco">$GROUP_ICON$</div><?else?><div class="postRankIco">$USER_RANK_ICON$</div><?endif?> <?if($GROUP_NAME$)?><div class="postUserGroup">Группа: $GROUP_NAME$</div><?endif?> <?if($POSTS$)?><div class="numposts">Сообщений: <span="unp">$POSTS$</span></div><?endif?> <?if($READ_REP_URL$)?><div class="reputation">Репутация: <a title="Смотреть историю репутации" class="repHistory" href="$READ_REP_URL$"><span class="repNums">$REP_RATING$</span> [$REP_RATING_PERS$]</a> <?if($DO_REP_URL$)?> <a class="reputationDo" title="Изменить репутацию" href="$DO_REP_URL$">±</a></div><?endif?><?endif?> <?if($READ_BAN_URL$)?><div class="userBan">Замечания: <a class="banPercent" title="Смотреть историю замечаний" href="$READ_BAN_URL$">$BAN_RATING$</a> <?if($DO_BAN_URL$)?> <a title="Изменить уровень замечаний" class="banDo" href="$DO_BAN_URL$">±</a></div><?endif?><?endif?> <?if($USER_STATUS$)?><div class="statusBlock">Статус: $USER_STATUS$</div><?endif?> <?if($GROUP_ID$)?> <?else?><br><br><br><br><br><?endif?> </td><td class="posttdMessage" valign="top">$MESSAGE$ <?if($ATTACHMENT$)?> <div align="left" class="eAttach">Прикрепления: $ATTACHMENT$</div><?endif?> <?if($SIGNATURE$)?><br><hr size="1" width="150" align="left" class="signatureHr"><span class="signatureView">$SIGNATURE$</span><?endif?> <?if($EDITEDBY$)?><br><br><div class="edited">Сообщение отредактировал $EDITEDBY$</div><?endif?></td></tr> <tr><td class="postBottom" align="center"><?if($USER_IP$)?><div class="postip">[ <a class="postIpLink" href="http://www.ripe.net/perl/whois?$USER_IP$" target="_blank">$USER_IP$</a><?if($POST_COUNTRY_ID$)?> (<a href="javascript://" onclick='prompt("","$POST_COUNTRY$");return false;'>$POST_COUNTRY_ID$</a>)<?endif?> ]</div><?else?> <?endif?></td><td class="postBottom"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr><td>$USER_DETAILS_ICON_BAR$</td><td align="right" style="padding-right:15px;">$ENTRY_MANAGE_ICON_BAR$</td><td width="2%" nowrap align="right">$ON_TOP_ICON$$DEL_ENTRY_FIELD$</td></tr> </table></td></tr></table> | |
Просмотров: 526 | Загрузок: 0 | Рейтинг: 0.0/0 |
Всего комментариев: 0 | |