In JavaScript how can i make a page where every day a picture changes and then when it reaches the end of the cycle it starts again ??????
Printable View
In JavaScript how can i make a page where every day a picture changes and then when it reaches the end of the cycle it starts again ??????
this works if you name your pics
0.jpg
1.jpg
2.jpg
3.jpg
4.jpg
5.jpg
6.jpg
<html>
<head>
<script>
function showpic()
{today = new Date();
DAYPIC.src=today.getDay() + ".jpg";
}
</script>
</head>
<body ONLOAD="showpic()">
<IMG WIDTH=180 HEIGHT=270 Name="DAYPIC">
</body>
</html>