Hola, danipermuy. Veamos si esto te sirve.
Coloca este código entre <head> y </head>
Código:
<style>
.boton1 {background-color:"#999999"}
.boton2 {background-color:"#006600"}
</style>
<script>
function cambiarColor(src) {
for (j=0;j<document.all.length;j++)
if (document.all[j].type=="button")
document.all[j].className='boton1';
src.className='boton2';
}
</script>
Y los botones serían algo así:
Código:
<input type="button" value ="Boton 1" class="boton1" onClick="cambiarColor(this)">
Saludos,
---------------
Pregunta lo que ignoras y pasarás por tonto 5 minutos.
No lo preguntes y serás tonto toda la vida.