<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>
Мне нужно, чтобы вот эти цвета были вставлены вот здесь [реклама вместо картинки], такой же кнопочкой как и все кнопки, только с другим обозначением!
Реально это сделать?
Вот скрипт иеонок:
<style> #form-buttons table, .punbb .formal textarea {width:99%} #form-buttons td {padding:0; line-height:0; background-position:center; background-repeat:no-repeat} #form-buttons td img {height:26px; width:100%} #button-font {background-image:url('http://img100.imageshack.us/img100/7872/fontag6.png')} #button-size {background-image:url('http://img233.imageshack.us/img233/8052/sizefontft7.png')} #button-bold {background-image:url('http://img296.imageshack.us/img296/5051/boldew7.png')} #button-italic {background-image:url('http://img233.imageshack.us/img233/9614/italwy4.png')} #button-underline {background-image:url('http://img233.imageshack.us/img233/7743/underlineul7.png')} #button-strike {background-image:url('http://img233.imageshack.us/img233/1989/97155150ze9.png')} #button-left {background-image:url('http://img233.imageshack.us/img233/8444/leftalignxj8.png')} #button-center {background-image:url('http://img296.imageshack.us/img296/9294/centeralignxq3.png')} #button-right {background-image:url('http://img233.imageshack.us/img233/866/rightalignvo6.png')} #button-link {background-image:url('http://img233.imageshack.us/img233/9210/urlpr3.png')} #button-email {background-image:url('http://img233.imageshack.us/img233/533/mailta3.png')} #button-image {background-image:url('http://img233.imageshack.us/img233/9349/piccr2.png')} #button-hide {background-image:url('http://img100.imageshack.us/img100/1556/hideso3.png')} #button-quote {background-image:url('http://img233.imageshack.us/img233/8871/quoterb4.png')} #button-code {background-image:url('http://img120.imageshack.us/img120/2010/coderr7.png')} #button-color {background-image:url('http://img120.imageshack.us/img120/2382/colorsln2.png')} #button-smile {background-image:url('http://img233.imageshack.us/img233/1204/smiles2ud2.png')} #button-keyboard {background-image:url('http://img233.imageshack.us/img233/673/keyboardae5.png')} #button-imageup {background-image:url('http://img233.imageshack.us/img233/2074/loadimagelg9.png')} </style>
Отредактировано Андрюха (Пн, 24 Мар 2008 03:26:21)