rem: document.write('<a href="javascript:bbfontstyle(\'[color=#' + color + ']\', \'[/color]\');" onmouseover="helpline(\'s\');"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>'); 
add: document.write('<a href="#" onclick="bbfontstyle(\'[color=#' + color + ']\', \'[/color]\'); return false;" onmouseover="helpline(\'s\');"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>'); 
context: function colorPalette(dir, width, height){	var r = 0, g = 0, b = 0;	var numberList = new Array(6);	numberList[0] = '00';	numberList[1] = '40';	numberList[2] = '80';	numberList[3] = 'BF';	numberList[4] = 'FF';	document.write('<table cellspacing="1" cellpadding="0" border="0" class="type2">');	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 style="line-height: ' + height + 'px; background-color:#' + color + '; width: ' + width + 'px; height: ' + height + 'px;">');				document.write('<a href="javascript:bbfontstyle(\'[color=#' + color + ']\', \'[/color]\');" onmouseover="helpline(\'s\');"><img src="images/spacer.gif" width="' + width + '" height="' + height + '" alt="#' + color + '" title="#' + color + '" /></a>');				document.writeln('</td>');			}			if (dir == 'v')			{				document.writeln('</tr>');			}		}		if (dir == 'h')		{			document.writeln('</tr>');		}	}	document.writeln('</table>');}
meta: 632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/632/b76222cb6e9ed69ee8ed0c09f0196eaaafd33fad/editor.js/clean/phpBB/adm/style/editor.js