Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/10/2010, 09:01
shoto_reaper
 
Fecha de Ingreso: octubre-2010
Mensajes: 26
Antigüedad: 13 años, 6 meses
Puntos: 0
Cambiar fondo celda de una tabla con javascript

Tengo este codigo pero por desgracia no funciona:
Código:
<html>
	<script>
		function cambia(){
			celda1.style.background="images/button2.jpg"
			
			return true
		}
		
	</script>
	<center><body bgcolor=black>
		<table border=2 bgcolor=white height=45 width=1200>
			<tr>
				<td id="celda1" width=100 background="images/button.jpg" >
					<center><A HREF="lista360.html" target=indice onclick="cambia()"><b>Xbox 360</b></A></center>
					
				</td>
</body>
</html>
¿Alguna idea de porque no me carga el fondo "Button2"?