Results 1 to 2 of 2

Thread: Picture Change

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    England, Buckingham
    Posts
    1,341
    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 ??????

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    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
  •  



Click Here to Expand Forum to Full Width