source: extensions/typetags/admin/palette.js @ 3301

Last change on this file since 3301 was 3301, checked in by patdenice, 15 years ago

New extension added:
Type tags (2.0.d)

File size: 599 bytes
Line 
1bloc = true;
2function hexa(couleur)
3{
4        if(bloc)
5                document.form.hexval.value = couleur;
6}
7function palette() { 
8document.write("<TABLE border='0' cellpadding='0' cellspacing='0' ><TR>"); 
9var h=new Array('00','33','66','99','CC','FF'); 
10var col=""; 
11for(var i=0;i<6;i++) { 
12for(var j=0;j<6;j++) { 
13for(var k=0;k<6;k++) { 
14col="#"+h[i]+h[j]+h[k]; 
15document.write("<TD width='10' height='10' bgcolor='"+col+"' onMouseOver=\"hexa('"+col+"')\" onClick=\"if(bloc) { bloc = false; } else { bloc = true; }\"></TD>"); 
16} 
17} 
18document.write("</tr>"); 
19} 
20document.write("</TABLE>"); 
21} 
Note: See TracBrowser for help on using the repository browser.