editor.js in the style/../template
Find
Code: Select all
/**
* Color pallette
*/
function colorPalette(dir, width, height)
{
Code: Select all
/**
* Color pallette
*/
function colorPalette(dir, width, height)
{
var r = 0, g = 0, b = 0;
var numberList = new Array(6);
var numberListgrey = new Array(6);
var color = '';
numberList[0] = '00';
numberList[1] = '40';
numberList[2] = '80';
numberList[3] = 'BF';
numberList[4] = 'FF';
numberListgrey[0] = '373737';
numberListgrey[1] = '565656';
numberListgrey[2] = '787878';
numberListgrey[3] = 'A1A1A1';
numberListgrey[4] = 'CACACA';
document.writeln('<table cellspacing="1" cellpadding="0" border="0">');
for (r = 0; r < 5; r++)
{
if (dir == 'h')
{
document.writeln('<tr>');
}
for (g = 0; g < 5; g++)
{
if (dir == 'v')
{
document.writeln('<tr>');
}
for (b = 0; b < 5; b++)
{
color = String(numberList[r]) + String(numberList[g]) + String(numberList[b]);
document.write('<td bgcolor="#' + color + '" style="width: ' + width + 'px; height: ' + height + 'px;">');
document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');
document.writeln('</td>');
}
if (dir == 'v')
{
document.writeln('</tr>');
}
}
colorgrey = String(numberListgrey[r]);
document.write('<td bgcolor="#' + colorgrey + '" style="width: ' + width + 'px; height: ' + height + 'px;">');
document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + colorgrey + ']\', \'[/color]\'); return false;"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + colorgrey + '" title="#' + colorgrey + '" /></a>');
document.writeln('</td>');
if (dir == 'h')
{
document.writeln('</tr>');
}
}
document.writeln('</table>');
}