Reeb0k | Дата: Воскресенье, 15.05.2011, 06:36 | Сообщение # 1 |
 Человек)
Группа: Пользователи
Сообщений: 70
Статус: 
| [bluetable]Пример[/bluetable] [Table]В общий вид материалов форума после $BODY$[/Table] [spoiler="Код"]<script type="text/javascript"> e=document.getElementsByTagName("TD"); for(k=0;k<e.length;k++) { if(e[k].className=='posttdMessage') { s=e[k].innerHTML; while (s.indexOf('[b lue]') != -1) { s=s.replace('[b lue]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:161618; border-top:1px dotted #268abf; border-right:1px dotted #268abf; border-bottom:1px dotted #268abf; border-left:1px dotted #268abf;"><tr><td style="width:15px; height:30px; background-image: url(http://mc-tm.pp.ru/admin_soob/blue2.png); background-repeat:no-repeat; background-position:0.5px 0.5px;"> </td><td><font size="1.5" face="Visitor_Rus" style="color: 268abf;">'); s=s.replace('[/b lue]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script> [/spoiler] [bluetable]Уберите пробелы между b_lue[/bluetable] [Table]В "Форме добавления сообщения" после $BBCODES$ ставим:[/Table][spoiler="Код"]<input type="button" value="Синяя Таблица" onclick="simpletag('blue','','','message',''); return false;" class="codeButtons" title="Вставить Синию Таблицу" name="blue"> [/spoiler]
[redtable] [/redtable]
|
|
| |