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