Prueba con esto:
Pon esto en el head:
<script>
fondos=["fondo1.jpg", "fondo2.jpg", "fondo3.jpg", "fondo4.jpg"];
function fondo(){
celda=document.getElementById("cambiante");
fondo=parseInt(Math.random(1)*fondos.length);
celda.style.backgroundImage="url("+fondos[fondo]+")";
}
</script>
como body:
<body onload="fondo()">
y luego en la celda:
<td id="cambiante"></td>
Dime si te sirve.
Un ejemplo:
Código PHP:
<html>
<head>
<title>Untitled</title>
<script>
fondos=["http://www.forosdelweb.com/images/profile.gif", "http://www.forosdelweb.com/images/sendpm.gif", "http://www.forosdelweb.com/images/home.gif", "http://www.forosdelweb.com/images/buddy.gif"];
function fondo(){
celda=document.getElementById("cambiante");
fondo=parseInt(Math.random(1)*fondos.length);
celda.style.backgroundImage="url("+fondos[fondo]+")";
}
</script></head>
<body onload="fondo()" onreload="fondo()">
<table><tr><td style="border:solid 1px black;width:100px;height:100px;" id="cambiante"></td></tr></table>
</body>
</html>