Voici ce que j'ai comme code :
Code : Tout sélectionner
function MM_changeProp(objName,x,theProp,theValue) { //v6.0
var obj = MM_findObj(objName);
if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
if (theValue == true || theValue == false)
eval("obj."+theProp+"="+theValue);
else eval("obj."+theProp+"='"+theValue+"'");
}
}
<input name="background" class="input2" type="radio" id="background" value="no change" checked="checked" />
<input name="background2" class="input2" type="radio" id="background2" value="color" />
<input name="bgtext" type="text" id="bgtext" onblur="MM_changeProp('background2','','checked','','INPUT/RADIO')" />