Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/08/2007, 08:52
mount
 
Fecha de Ingreso: marzo-2007
Mensajes: 58
Antigüedad: 18 años
Puntos: 0
Re: Condicional que no funciona

Cita:
Iniciado por astut Ver Mensaje
Código:
	function Mover(campo,arriba,abajo,izquierda,derecha,direccion) 
			{
				if (document.getElementById(arriba).value= "np" || document.getElementById(abajo).value= "np" ||
						document.getElementById(izquierda).value= "np" || document.getElementById(derecha).value= "np")
				{
					window.open("panel.php", "_blank", 'width=300, height=400');
					break;
				}}
Pues el condicional no funciona
Sustituye
Código:
value= "np"
por
Código:
value == "np"