bonjour a tous

je voudrais savoir si quelqu'un pourrais m'aider afin de mettre différentes couleurs dans une même cellule voici mon petit langage j'ai réussi a mettre deux couleurs mais il me faudrait aussi du violet , rose,bleu ciel, noir,rouge et dans le tableau il faut que toute les cellules reste en vert fluo mais lorsque que l'on clique sur une cellule on puisse une de ces 6 couleurs merci pour votre réponse

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script type="text/JavaScript">
function selec(zone)
{if (zone.style.backgroundColor!="red")
  zone.style.backgroundColor="red";
else zone.style.backgroundColor="Lime"; }
</script>
<table width="500" border="4">
<tbody>
<tr>
<td></td>
</tr>
<tr>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VL 1</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VL 2</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VL CDC</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VL OGC</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VLTT</span></span></span></font></td>
</tr>
<tr>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VSAV 1</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VSAV 2</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VSAV 3</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VSR</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">PMA</span></span></span></font></td>
</tr>
<tr>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">FPT</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">FPTL</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">EPA</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">CCF 4000</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">CDHR</span></span></span></font></td>
</tr>
<tr>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">EAU/EM</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VARGE</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">CMIC</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VPL</span></span></span></font></td>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VTU 1</span></span></span></font></td>
</tr>
<tr>
<td onclick="selec(this);" text-align:="center&quot;"><font size="4"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: Black;">VTU 2</span></span></span></font></td>
</tr>
</tbody>
</table>