- Joined
- Jun 7, 2001
- Messages
- 47,973
I would like to have this part of a script grab the "pics" from a different Directory, so that I can run another version on a different page with different pics.
Sooo... how do I modify this to have it grab the pics from a Dir (such as Images)?
Sooo... how do I modify this to have it grab the pics from a Dir (such as Images)?
PHP:
<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='" + arday[day] + "'>");
</script><P>