(c)Duka

Этот код позволяет создать вам свои цвета на форуме и вынести отдельную кнопку в форму ответа.
Код:

Код:
<table><tr>
<td onclick="return changeVisibility('mycolor', this)"><img src="http://forum.mybb.ru/i/color_swatch.png" alt="Мои цвета" /></td></tr></table>
<div class="container" id="mycolor" style="display:none; width:200px">
        	<table cellspacing="0">
            <tr>
                    <td style="background-color:indigo" onclick="insert_text('[color=indigo]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:thistle" Height="15px" onclick="insert_text('[color=thistle]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:tomato" onclick="insert_text('[color=tomato]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:yellowgreen" onclick="insert_text('[color=yellowgreen]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:lightslategray" onclick="insert_text('[color=lightslategray]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:lightpink" onclick="insert_text('[color=lightpink]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:goldenrod" onclick="insert_text('[color=goldenrod]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:blue" onclick="insert_text('[color=blue]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:silver" onclick="insert_text('[color=silver]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            	<td style="background-color:aquamarine" onclick="insert_text('[color=aquamarine]', '[/color]'); return changeVisibility('mycolor', this)"></td>
            </tr>
        	</table>
        	</div>

А теперь как работать:
Для добавления своего нового цвета добавьте
Код:

<td style="background-color:ЦВЕТ" onclick="insert_text('[color=ЦВЕТ]', '[/color]'); return changeVisibility('mycolor', this)"></td>

перед

    </tr>

Вместо ЦВЕТ добавляете свой цвет: название цвета или номер цвета в RGB формате(решетка перед цветом в RGB обязательна)

Если Вы решили добавить много своих цветов, то не забудьте изменить в "width:200px" размер ширины всплывающего контейнера. изменяете 200 на значение большее или меньшее по Вашему усмотрению.

Скрипт вставлять в HTML в форме ответа.
При желании также можно вместо

   

<img src="http://forum.mybb.ru/i/color_swatch.png" alt="Мои цвета" />

Написать "Мои цвета" или на ваше усмотрение.