I'm using Jason Customciser (version Jason_Customciser-doc) to let users customise themes. And I want to "visualise" Colour-input.
I found nice .js-colourpicker, but I can't to include it to Jason_Customciser.php correctly (.js working, but don't give anything to php).
Anibody can help me?
Here is the .js code:
<script language="JavaScript">d=document;
gen6=function(p){b='FFCC99663300'.match(/../g);
s='';j=0;
while(j<216)
s+=(j%36?'':'<tr>')+'<td bgColor='
+b[(j-j%36)/36]+b[(j-j%6)/6%6]+b[j%6]
+' style="font-size:4px" width=6 height=6></td>'
+(++j%36?'':'</tr>');
d.body.innerHTML+=
'<table bgColor=black cellpadding=0 cellspacing=1 id=t'
+p+'>'+s+'</table><input id=it'+p+'>';
}</script>
<script language="JavaScript"> clicked=0; d.onmouseover=function(e){ t=d.all?event.srcElement:e.target;
if(clicked||t.tagName!='TD')return;
if(t.bgColor)
d.getElementById('i'+t.offsetParent.id).value=t.bgColor;
}
d.onclick=function(e){ t=d.all?event.srcElement:e.target;
if(t.tagName!='TD'&&t.tagName!='TABLE')return;
clicked=1-clicked;
}</script>
<script language="JavaScript">onload=gen6;</script>