Ver Mensaje Individual
  #6 (permalink)  
Antiguo 16/11/2010, 05:25
robinsv
 
Fecha de Ingreso: mayo-2009
Mensajes: 15
Antigüedad: 15 años
Puntos: 0
Busqueda Respuesta: Problema If de boton 1 vez pulsado tenga 1 color y al volverlo a pulsar el

Este codigo me ha funcionado alfinal, el problema esque en firefox funciona pero en internet iexplorer no, y todos los que visitan la web entran desde IEXPLORER

Código:
      function Funcion2(COLOR) {
		var aux=document.getElementById(COLOR).style.backgroundColor;
		if (aux == "rgb(152, 251, 152)"){
                      document.getElementById(COLOR).style.backgroundColor="#ffffff";
					  document.getElementById(COLOR).style.background="#ffffff"; 					  
              }
              else {
                      document.getElementById(COLOR).style.backgroundColor="#98FB98";
					  document.getElementById(COLOR).style.background="#98FB98";
              }  
          }
voy a probar cambiando de clases