PDA

View Full Version : Changing an image on my page on a daily basis



simonf
09-30-2004, 09:01 AM
Hi

I'm loking for code to change an image on my web page on a daily basis i.e

Monday = image1
Tuesday= image2
etc
etc

rgds,Simonf :cool:

ddadmin
09-30-2004, 09:25 AM
Check out this script: http://www.javascriptkit.com/script/cut120.shtml

toastie
09-30-2004, 09:45 AM
Try this I had stored away - I borrowed it from somewhere, sorry can't remember where. Don't think I have actually used it but seems to make sense!

<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>

simonf
09-30-2004, 11:08 AM
Hi Guys

Quick is not the word... thanks a million... :) Simonf