02:54:27
, 06.07.2025, Воскресенье
Новости Галерея Реклама Поиск RSS
SEO sprint - Всё для максимальной раскрутки!
  • Страница 1 из 1
  • 1
НОВЫЕ Таблица для всех!
Дата: Воскресенье, 05.12.2010, 19:13:20 | Сообщение # 1
Аватарка Dexterneds
OFF
Пользователь
62Сообщения:
Skype пользователя:
Вот решил переделать таблицу для вас:
Скрин: http://s005.radikal.ru/i212/1006/4b/1a413f2a591a.jpg
Панель управления >> форум >> общий вид страниц форума после $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"/>
  • Страница 1 из 1
  • 1
Поиск: