Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/04/2013, 04:55
ioniben
 
Fecha de Ingreso: marzo-2013
Ubicación: España
Mensajes: 42
Antigüedad: 11 años, 2 meses
Puntos: 4
Respuesta: Desmarcar checkbox al marcar otro checkbox

Prueba a ponerle un id al input,
<input type="checkbox" id="check1" onclick="check1(this);">
<input type="checkbox" id="check2" onclick="check2(this);"

Y en la funcion check1:
function check1(checkbox) {
if (checkbox.checked) {
image.src = "foto1.jpg";
getElementsyiId("check2").checked = false;
}
else {
image.src = "foto.jpg";
}
}