The script below is what I am using

<script language="JavaScript">
day=new Date() //..get the date
x=day.getHours() //..get the hour

if(x>=0 && x<4) {
document.write('<div header="../images/header.jpg">')
} else
if(x>=4 && x<12) {
document.write('<body background="../images/header2.jpg">')
} else
if(x>=12 && x<18) {
document.write('<body background="../images/header3.jpg">')
} else
if (x>=18 && x<24) {
document.write('<background="../images/header4.jpg">')
}
<!-- End Hiding -->
</script>



But I don't want the image to appear in the background I want it to appear in a table cell how do I do this...the code is below:

<div id="background">
<table width="850" border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="header">
</td>
</tr>
<tr>

but will it work in a div layer.

Thanks for your time

CanCan