Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<script type="text/javascript">
/*<![CDATA[*/
var ImgAry=['http://www.vicsjavascripts.org.uk/StdImages/One.gif','http://www.vicsjavascripts.org.uk/StdImages/Two.gif','http://www.vicsjavascripts.org.uk/StdImages/Three.gif'];
// preload the images
for (var img,z0=0;z0<ImgAry.length;z0++){
img=ImgAry[z0];
ImgAry[z0]=new Image();
ImgAry[z0].src=img;
}
var cnt=0,to=null;
function Rotate(){
cnt=++cnt%ImgAry.length;
document.getElementById('t1').style.backgroundImage='url('+ImgAry[cnt].src+')';
to=setTimeout(function(){ Rotate(); },2000);
}
/*]]>*/
</script></head>
<body onload="Rotate();">
<table id="t1" width="528" border="2" cellspacing="4" cellpadding="0" align="center" background="http://www.vicsjavascripts.org.uk/StdImages/One.gif" border="0" height="362">
<tr>
<td>text</td>
</tr>
</table>
</body>
</html>
Bookmarks