Code Javascript :
<HTML>
<HEAD>
<TITLE></TITLE>
<script type="text/JavaScript">
function couleur(zone)
{
if (zone.style.backgroundColor=="red")
{
zone.style.backgroundColor="blue";
}
else if(zone.style.backgroundColor=="blue")
{
zone.style.backgroundColor="green";
}
else
{
zone.style.backgroundColor="red";
}
}
</script>
</HEAD>
<BODY>
<table>
<tr><td onclick="couleur(this);" style="background-color:'red'">un</td>
<td onclick="couleur(this);" style="background-color:'red'">deux</td></tr>
</table>
</BODY></HTML>
Je me suis servi du code de bultez et j'ai rajouter un else if..
Little Wursht from Elsass -> http://darkyesus.dyndns.org
