Hello, I found this online to change images daily. I have several images I would like to do this with so I want to make this an external javascript file instead of putting it in the source code because it will be real big.
I tried putting a regular .js call command in my web page to call it as I do with normal javascript functions but it doesn’t work. Seems to me I need a way to insert the image it selects into my page. Anyone know how? Thanks a lot. ? Rianna
<script>
<!– var mondayimg=”
tuesdayimg=”
var thursdayimg=”
var saturdayimg=”
var mydate=new Date() var today=mydate.getDay() if (today==1) document.write(‘<img
src=”‘+mondayimg+'”>’) else if (today==2) document.write(‘<img
src=”‘+tuesdayimg+'”>’) else if (today==3) document.write(‘<img
src=”‘+wednesdayimg+'”>’) else if (today==4) document.write(‘<img
src=”‘+thursdayimg+'”>’) else if (today==5) document.write(‘<img
src=”‘+fridayimg+'”>’) else if (today==6) document.write(‘<img
src=”‘+saturdayimg+'”>’) else document.write(‘<img src=”‘+sundayimg+'”>’)
//–> </script>