PDA

Click to See Complete Forum and Search --> : Picture Change


PsyVision
Aug 31st, 2000, 03:32 PM
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 ??????

makai
Aug 31st, 2000, 11:33 PM
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>