Hi Guys, i really hope you can help me here, im designing a new website, and i want the banner to display a new image for each day of the week. Ive found the code to make this happen, but my image is a background image, does anyone know how this can be achieved?... all suggestions will be much appreciated. The following is the code i have, but how do i apply it to a background image? :-
-------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
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='" + arday[day] + "'>");
// End -->
</script>
-----------------------------------------------------------
Current coding for image :-
<td height="126" valign="top" style="background:url(home/images/banner/banner_back_2.gif) #ffffff no-repeat" >
-----------------------------------------------------------
Thank in advance.
-------------------------------------------------------
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
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='" + arday[day] + "'>");
// End -->
</script>
-----------------------------------------------------------
Current coding for image :-
<td height="126" valign="top" style="background:url(home/images/banner/banner_back_2.gif) #ffffff no-repeat" >
-----------------------------------------------------------
Thank in advance.