Réponse acceptée !
Salut,
<TABLE border="0" cellpadding="0" cellspacing="0"><TR>
<TD></TD>
<TD width='25' height='25' bgcolor='#CC0000' id="td1" onClick="document.form.degre.value='1';clear();this.style.border='2px solid #000;';"></TD>
<TD width='25' height='25' bgcolor='#FF3300' id="td2" onClick="document.form.degre.value='2';clear();this.style.border='2px solid #000;';"></TD>
<TD width='25' height='25' bgcolor='#FF9900' id="td3" onClick="document.form.degre.value='3';clear();this.style.border='2px solid #000;';"></TD>
<TD width='25' height='25' bgcolor='#FFFF00' id="td4" onClick="document.form.degre.value='4';clear();this.style.border='2px solid #000;';"></TD>
<TD width='25' height='25' bgcolor='#66FF00' id="td5" onClick="document.form.degre.value='5';clear();this.style.border='2px solid #000;';"></TD>
</TR></TABLE><div
align="right"><table><tr><td width="25"
height="25"></td></tr></table></div>
<input type="text" name="degre" size="1" maxlength="1" style="visibility:hidden;"><br>
avec une fonction clear(){
document.getElementById('td1').style.border="none";
document.getElementById('td2').style.border="none"
document.getElementById('td3').style.border="none";
document.getElementById('td4').style.border="none";
document.getElementById('td5').style.border="none";
}
In a dream, I saw me, drop dead... U was there, U cried... It was just a dream, if I die, U won't cry, maybe, U'll be happy
Mon site (articles sur la programmation et programmes)