Загружаем страницу...
Главная страница
Форум сайта
Главная страница
Для просмотра всех возможностей сайта, вам необходимо пройти процедуру регистрации, либо войти в свой аккаунт.*
*Форма входа и регистрация пользователя, блоке "Мини-профиль" на страницах типа "Главная".Для корректной работы сайта советуем установить Google Chrome
Поиск по сайту  RSS канал 


  • Страница 1 из 1
  • 1
Красивые рамки
ПрочитаноВторник, 15.11.2011, 22:20
Сообщение
#1

♣Ястреб♣

CnD Fuck Yeaa
Администратор
Подробная информация


Вставляем в общий вид страницы форума :

Code
<script type="text/javascript">     
     // Жёлтая таблица     
     e=document.getElementsByTagName("TD");     
     for(k=15; k<e.length;k++) {     
     if(e[k].className=='posttdMessage') {     
     s=e[k].innerHTML;     
     while (s.indexOf('[vip]') != -1){     
     s=s.replace('[vip]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:#cccccc; border-top:1px dotted #bc9621; border-right:1px dotted #ffb400; border-bottom:1px dotted #ffb400; border-left:1px dotted #ffb400;"><tr><td style="width:50px; height:50px; background-image: url(/img/bbcode/1.png); background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 11px; font-family: Verdana; color: #db9f0f">'); s=s.replace('[/vip]','</font></td></tr></table>');     
     e[k].innerHTML=s;     
     }     
     } }     
     </script>     

     <script type="text/javascript">     
     // Чёрная таблица     
     e=document.getElementsByTagName("TD");     
     for(k=15; k<e.length;k++) {     
     if(e[k].className=='posttdMessage') {     
     s=e[k].innerHTML;     
     while (s.indexOf('[usr]') != -1){     
     s=s.replace('[usr]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:#cccccc; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:50px; height:50px; background-image: url(/img/bbcode/4.png); background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 11px; font-family: Verdana; color: #898989">'); s=s.replace('[/usr]','</font></td></tr></table>');     
     e[k].innerHTML=s;     
     }     
     } }     
     </script>


После $BBCODES$ в фома добовления сообщений:

Code
<?if($CUR_GROUP_ID$="4")?><input type="button" value="Красная рамка" onclick="simpletag('admin','','','message',''); return false;" class="codeButtons" title="Вставить красную рамку" name="admin" /> <input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /> <input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /> <input type="button" value="Серая рамка" onclick="simpletag('usr','','','message',''); return false;" class="codeButtons" title="Вставить серую рамку" name="usr" /><?endif?>     
     <?if($CUR_GROUP_ID$="3")?><input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <?endif?>     
     <?if($CUR_GROUP_ID$="8")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /> <input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /> <input type="button" value="Серая рамка" onclick="simpletag('usr','','','message',''); return false;" class="codeButtons" title="Вставить серую рамку" name="usr" /><?endif?>     
     <?if($CUR_GROUP_ID$="7")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /><?endif?>     
     <?if($CUR_GROUP_ID$="9")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /><?endif?>     
     <?if($CUR_GROUP_ID$="2")?><input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /><?endif?>


Сообщение

Вставляем в общий вид страницы форума :

Code
<script type="text/javascript">     
     // Жёлтая таблица     
     e=document.getElementsByTagName("TD");     
     for(k=15; k<e.length;k++) {     
     if(e[k].className=='posttdMessage') {     
     s=e[k].innerHTML;     
     while (s.indexOf('[vip]') != -1){     
     s=s.replace('[vip]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:#cccccc; border-top:1px dotted #bc9621; border-right:1px dotted #ffb400; border-bottom:1px dotted #ffb400; border-left:1px dotted #ffb400;"><tr><td style="width:50px; height:50px; background-image: url(/img/bbcode/1.png); background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 11px; font-family: Verdana; color: #db9f0f">'); s=s.replace('[/vip]','</font></td></tr></table>');     
     e[k].innerHTML=s;     
     }     
     } }     
     </script>     

     <script type="text/javascript">     
     // Чёрная таблица     
     e=document.getElementsByTagName("TD");     
     for(k=15; k<e.length;k++) {     
     if(e[k].className=='posttdMessage') {     
     s=e[k].innerHTML;     
     while (s.indexOf('[usr]') != -1){     
     s=s.replace('[usr]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:#cccccc; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:50px; height:50px; background-image: url(/img/bbcode/4.png); background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 11px; font-family: Verdana; color: #898989">'); s=s.replace('[/usr]','</font></td></tr></table>');     
     e[k].innerHTML=s;     
     }     
     } }     
     </script>


После $BBCODES$ в фома добовления сообщений:

Code
<?if($CUR_GROUP_ID$="4")?><input type="button" value="Красная рамка" onclick="simpletag('admin','','','message',''); return false;" class="codeButtons" title="Вставить красную рамку" name="admin" /> <input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /> <input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /> <input type="button" value="Серая рамка" onclick="simpletag('usr','','','message',''); return false;" class="codeButtons" title="Вставить серую рамку" name="usr" /><?endif?>     
     <?if($CUR_GROUP_ID$="3")?><input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <?endif?>     
     <?if($CUR_GROUP_ID$="8")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /> <input type="button" value="Зеленая рамка" onclick="simpletag('moder','','','message',''); return false;" class="codeButtons" title="Вставить зеленую рамку" name="moder" /> <input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /> <input type="button" value="Серая рамка" onclick="simpletag('usr','','','message',''); return false;" class="codeButtons" title="Вставить серую рамку" name="usr" /><?endif?>     
     <?if($CUR_GROUP_ID$="7")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /><?endif?>     
     <?if($CUR_GROUP_ID$="9")?><input type="button" value="Синяя рамка" onclick="simpletag('pro','','','message',''); return false;" class="codeButtons" title="Вставить синюю рамку" name="pro" /><?endif?>     
     <?if($CUR_GROUP_ID$="2")?><input type="button" value="Желтая рамка" onclick="simpletag('vip','','','message',''); return false;" class="codeButtons" title="Вставить желтую рамку" name="vip" /><?endif?>

Автор - ♣Ястреб♣
Дата добавления - 15.11.2011 в 22:20
  • Страница 1 из 1
  • 1
Поиск: