Ver Mensaje Individual
  #2 (permalink)  
Antiguo 19/04/2002, 09:44
bet
 
Fecha de Ingreso: febrero-2001
Mensajes: 292
Antigüedad: 24 años
Puntos: 0
Re: Como puedo cambiar el color de fondo de una celda

Algo así es lo que buscas??

Código:
<html>
<head>
<title> New Document </title>
<style type="text/css">
	td {background-color: green; color:white;}
</style>

<script language="JavaScript">
<!--
function cambio(item,bg){
	item.style.backgroundColor = bg;
	}
//-->
</script>
</head>

<body bgcolor="#FFFFFF">
<table width="50%">
<tr>
	<td  onMouseOver="cambio(this,'blue');" onMouseOut="cambio(this,'green');"> Campo 1</td>
	<td  onMouseOver="cambio(this,'blue');" onMouseOut="cambio(this,'green');"> Campo 2</td>
</tr>
<tr>
	<td  onMouseOver="cambio(this,'blue');" onMouseOut="cambio(this,'green');"> Campo 3</td>
	<td  onMouseOver="cambio(this,'blue');" onMouseOut="cambio(this,'green');"> Campo 4</td>
</tr>
</table>
</body>
</html>
<hr noshade size=1><img src="http://www.gograph.com/Images-8712/ClipArt/cat03.gif" height="50" border=0 align="absmiddle"> <font size="2" face="verdana" color="#000000">bet[/CODE]