Daily Image modified to background repeat

wxdqz

New Member
I`ve got this script for changing an image daily

<script language="javascript1.1">

today = new Date();
day = today.getDay();

arday = new Array("Sunday.jpg", "Monday.jpg", "Tuesday.jpg", "Wednesday.jpg", "Thursday.jpg", "Friday.jpg", "Saturday.jpg");

document.write("<img src='http://www.webdeveloper.com/forum/archive/index.php/" + arday[day] + "'>");

</script>

I want to change this so the image is fed into the background repeat element

<STYLE>
BODY { background-image: URL("");
background-repeat: repeat; }
</STYLE>

Any ideas on how to do this?

Thanks for your help,
Chris
 
Back
Top