Ver Mensaje Individual
  #6 (permalink)  
Antiguo 25/01/2008, 21:42
twelve
 
Fecha de Ingreso: diciembre-2007
Ubicación: Caracas - Venezuela
Mensajes: 32
Antigüedad: 16 años, 4 meses
Puntos: 1
Re: Ayuda con CheckBox como matriz

Muy bien Gente: para Cuando se crean CheckBox Con While: para seleccionar uno a uno a través de un:
<input type="image" src="/imagenes/img.gif" onClick="return check(this)">

Aquí esta el Código:

var flag = "false";
function check(obj){
if(flag == "false"){
obj.parentNode.parentNode.getElementsByTagName('in put')[0].checked=1;
flag = "true";
return true; }
else {
obj.parentNode.parentNode.getElementsByTagName('in put')[0].checked=0;
flag = "false";
return false; }
}

Saludos...