¿Y si pones un STYLE en medio?
Código PHP:
<html>
<head>
</head>
<body>
<form name="formulario" action="">
<input type="text" name="Txt_valor">
<input type="button" value="pincha para oscurecer" onClick="document.formulario.Txt_valor.style.background='#cccccc';">
</form>
</body>
</html>
¿Y poner DISABLED? Sería así:
Código PHP:
<form name="formulario" action="">
<input type="text" name="Txt_valor">
<input type="button" value="pincha" onClick="document.formulario.Txt_valor.disabled='true';document.formulario.Txt_valor.style.background='#cccccc';">
</form>
Si quieres en la página
http://www.arquo.com/contacto.php tienes un formulario que hace algo parecido.
Espero que te sirva. Cualquier duda pregunta!