Nok lidt pænere...
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-1"><title>Ingen titel</title>
<style type="text/css">
html,body{margin:0px;padding:0px;}
.colbutton{cursor:pointer;width:10px;height:10px;margin:0px 2px 2px 0px;float:left;font-size:1px;}
#coldapp{width:100%;height:0px;overflow:hidden;}
#coldiv{width:288px;margin:0px auto;padding:10px 0px;}
</style>
<script type="text/javascript">
var colelm,cca,ccb,ccl=['00',33,66,99,'cc','ff'];
function ra(cc){
colelm.setAttribute("value","#"+cc);
ccb.style.height="0px";
}
function cclf(n){
colelm=n;
if(!document.getElementById("coldiv")){
cca=document.createElement("div");
cca.id="coldiv";
for(i0=0;i0<ccl.length;i0++){
for(i1=0;i1<ccl.length;i1++){
for(i2=0;i2<ccl.length;i2++){
cca.appendChild(ccadd(i0,ccl[i0]+""+ccl[i1]+""+ccl[i2]));
}
}
}
ccb=document.getElementById("coldapp");
ccb.appendChild(cca);
}
ccb.style.height="128px";
}
function ccadd(capp,cc){
var cci0=document.createElement("div");
cci0.className="colbutton";
cci0.style.background="#"+cc;
if(cci0.addEventListener)cci0.addEventListener("click", function(){ra(cc);}, false);
else if(cci0.attachEvent)cci0.attachEvent("onclick", function(){ra(cc);});
cci0.appendChild(document.createTextNode("\u00a0"));
return cci0;
}
</script></head><body>
<table>
<tr>
<td width="25%" valign="top" bgcolor="#808080"> Overskrift </td>
<td width="38%" bgcolor="#808080">
<p> Farve
<input type="text" name="txtfarve" value="" onchange="this.setAttribute('value','');" onkeydown="return false;" onkeyup="this.setAttribute('value','');" onfocus="cclf(this);document.body.focus();" style="cursor:pointer;">
<div id="coldapp"></div> Tekst størrelse
<select size="1" name="stroverskrift">
<option value="7" selected>7</option>
<option value="5">5</option>
<option value="4">4</option>
<option value="2">2</option>
</select><br>
<input type="text" name="overskrift" size="58"></p>
</td>
<td width="37%" bgcolor="#808080">
</td>
</tr>
</table>
</body></html>