Панель управления >> форум >> общий вид страниц форума после $BODY$
Code <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('[Table2]') != -1) { s=s.replace('[Table2]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:black; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:25px; height:25px;background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 12px; font-family: Verdana; color: 898989;">'); s=s.replace('[/Table2]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script> <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('[Tablesin]') != -1) { s=s.replace('[Tablesin]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:black; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:25px; height:25px;background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 12px; font-family: Verdana; color: #1E90FF;">'); s=s.replace('[/Tablesin]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script> <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('[Tablekpac]') != -1) { s=s.replace('[Tablekpac]','<table width="100%" border="0" cellspacing="0" cellpadding="5" style="background-color:black; border-top:1px dotted #898989; border-right:1px dotted #898989; border-bottom:1px dotted #898989; border-left:1px dotted #898989;"><tr><td style="width:25px; height:25px;background-repeat:no-repeat; background-position:5px 3px;"> </td><td><font style="font-size: 12px; font-family: Verdana; color: red;">'); s=s.replace('[/Tablekpac]','</font></td></tr></table>'); e[k].innerHTML=s;}}} </script> В "Форме добавления сообщения" после $BBCODES$ ставим: Code <input type="button" value="Таблица2" onclick="simpletag('Table2','','','message',''); return false;" class="codeButtons" title="Вставить чёрную Таблицу" name="Table2"/><input type="button" value="Таблица красная" onclick="simpletag('Tablekpac','','','message',''); return false;" class="codeButtons" title="Вставить красную Таблицу " name="Tablekpac"/><input type="button" value="Таблица синяя" onclick="simpletag('Tablesin','','','message',''); return false;" class="codeButtons" title="Вставить синию Таблицу" name="Tablesin"/>
|