This is a free script that I am trying to convert. The goal is to have a new pic everyday. The gif files are in the mentioned directory.
I think I am supposed to enter the directory + arday + .gif to get the img src for say, Sunday.
Can someone tell me what I am doing wrong? The script is not working.
Thanks.
<SCRIPT LANGUAGE="javascript">
<!-- Begin
today = new Date();
day = today.getDay();
arday = new Array("sunday.gif", "monday.gif", "tuesday.gif",
"wednesday.gif", "thursday.gif", "friday.gif", "saturday.gif");
document.write("<img src='http://www.webdeveloper.com/forum/archive/index.php/"http://www.xxxxx.org/~xxxx/+ arday[day]+.gif"'>");
// End -->
</script>
I think I am supposed to enter the directory + arday + .gif to get the img src for say, Sunday.
Can someone tell me what I am doing wrong? The script is not working.
Thanks.
<SCRIPT LANGUAGE="javascript">
<!-- Begin
today = new Date();
day = today.getDay();
arday = new Array("sunday.gif", "monday.gif", "tuesday.gif",
"wednesday.gif", "thursday.gif", "friday.gif", "saturday.gif");
document.write("<img src='http://www.webdeveloper.com/forum/archive/index.php/"http://www.xxxxx.org/~xxxx/+ arday[day]+.gif"'>");
// End -->
</script>