|
-
Aug 31st, 2000, 03:32 PM
#1
Thread Starter
Frenzied Member
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 ??????
-
Aug 31st, 2000, 11:33 PM
#2
Lively Member
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>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|