Tema: Color fondo
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2004, 02:59
Avatar de TurKa
TurKa
 
Fecha de Ingreso: enero-2003
Ubicación: Gerli, Avellaneda
Mensajes: 543
Antigüedad: 22 años, 1 mes
Puntos: 4
Con esto lo resuleves:

Código HTML:
<SCRIPT LANGUAJE="javascript">
fondo = "#CDCDCD";
function normal(obj) {
	obj.style.backgroundColor = fondo;
}
function sobre(obj) { 
	obj.style.backgroundColor = "#CCCCFF";
}
function pulsado(obj) {
	if(fondo == "#FF8484") {
		obj.style.backgroundColor = "#CDCDCD";
		fondo = "#CDCDCD";
	}
	else {
		obj.style.backgroundColor = "#FF8484";
		fondo = "#FF8484";
	}
}
</SCRIPT>
<TABLE BORDER="1" CELLSPACING="0" WIDTH="100%">
  <TR bgcolor="#CDCDCD" onMouseOver="sobre(this);" onMouseOut="normal(this)" onClick="pulsado(this);">
  	<TD WIDTH="100%">&nbsp;</TD>
  </TR>
</TABLE> 
__________________
Programación LAMP con Scrum y XP
www.eugeniabahit.com.com.ar