hiya,
just browsing and had a similar requirement a while back. i had a look on www.dynamicdrive.com cos they usually have a good selection of DHTML/Javascript code that provide similar functionality.
good luck
Main Topics
Browse All TopicsThis Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
hiya,
just browsing and had a similar requirement a while back. i had a look on www.dynamicdrive.com cos they usually have a good selection of DHTML/Javascript code that provide similar functionality.
good luck
This is about as close as I can find....
http://www.vivaorange.com/
Here's one way to do it. Assuming your images are named according to the date you want them shown, (i.e., the image for july 26th is named 7-26.gif) you could do it like this:
<html>
<head>
<script type="text/javascript">
function setImage() {
var today = new Date();
var filename = (today.getMonth() + 1) + "-" + today.getDate() + ".gif";
document.images["daily"].s
}
</script>
</head>
<body bgcolor="#ffffff" onload="setImage()">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="" name="daily">
</td>
</tr>
</table>
</body>
</html>
If your images aren't named by date, you could create an array of all the filenames and choose one according to the day of the year. This approach is not as elegant in my opinion, but it works fine:
<html>
<head>
<script type="text/javascript">
var images = new Array(
"image1.jpg",
"image2.jpg",
"bob.jpg",
"steve.jpg",
"susan.jpg",
// ... etc ...
"picture365.jpg"
)
function setImage() {
var today = new Date();
var day = dayOfYear( today );
if( images.length >= day ) {
var filename = images[ day - 1 ];
document.images["daily"].s
} else {
// use the last image in the array if the array doesn't have enough entries
document.images["daily"].s
}
}
function dayOfYear( theDate ) {
with (theDate) {
var t = valueOf();
setMonth(0);
setDate(0);
var dayNum = Math.round((t - valueOf()) / 86400000);
return dayNum;
}
}
</script>
</head>
<body bgcolor="#ffffff" onload="setImage()">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<img src="" name="daily">
</td>
</tr>
</table>
</body>
</html>
Business Accounts
Answer for Membership
by: traxlermjPosted on 2003-07-24 at 05:48:17ID: 8994547
I am looking for some of your expertise, I need some java script that will show a different jpg every day of the year in a cell of a table. I have 365 jpg's of people that work in my building and I need to have a different one show up every day.