Новая палитра цветов
Добавляет в стандартную палитру 4096 цвета.
Это в НТML-низ:
<script type="text/javascript">
/*
http://LiveForums.ru/ (c) 2011
*/
if ((document.URL.indexOf('viewtopic.php?')!=-1)
||(document.URL.indexOf('edit.php')!=-1)
||(document.URL.indexOf('post.php')!=-1)
||(document.URL.indexOf('messages.php')!=-1))
{
var ColorsBank = new Array ('00', '11', '22', '33', '44', '55', '66', '77', '88', '99', 'aa', 'bb', 'cc', 'dd', 'ee', 'ff');
var i=0;
var table='';
var ColorArray = new Array();
for(r=15;r>=0;r--){
for(g=0;g<=15;g++){
for(b=0;b<=15;b++){
ColorArray[i]=ColorsBank[r]+''+ColorsBank[g]+''+ColorsBank[b];
table=table+'<p style="width:1px; height:1px; float:left; background:#'+ColorArray[i]+'"><img src="/i/blank.gif" alt="#'+ColorArray[i]+'"/></p>';
i++;
}}}
tablecolors='Цвет: <input id="now_color_rgb" name="now_color_rgb" type="text" size="7" value=""> Код: <input id="now_color" name="now_color" type="text" size="7" value="#rrggbb"><table cellspacing="0" cellpadding="0"><tr><td id="table_new_colors">'+table+'</td></tr></table>';
//alert(tablecolors);
$('div#color-area').prepend(tablecolors);
$('#table_new_colors p img').mouseover(function (){
var clr=$(this).attr("alt");
$("#now_color_rgb").css('background',clr);
$("#now_color").val(clr);});
$("#table_new_colors p img").click(function (){
var clr=$(this).attr("alt");
$("#now_color_rgb").css('background',clr);
$("#now_color").val(clr);
clr='[color='+clr;clr+="]";
bbcode(clr,"[/color]");});
}
</script>

