Results 1 to 4 of 4

Thread: Changing an image on my page on a daily basis

  1. #1
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Cool Changing an image on my page on a daily basis

    Hi

    I'm loking for code to change an image on my web page on a daily basis i.e

    Monday = image1
    Tuesday= image2
    etc
    etc

    rgds,Simonf

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

  3. #3
    Join Date
    Sep 2004
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try this I had stored away - I borrowed it from somewhere, sorry can't remember where. Don't think I have actually used it but seems to make sense!

    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    today = new Date();
    day = today.getDay();
    arday = new Array("sunday.jpg", "monday.jpg", "tuesday.jpg", "wednesday.jpg", "thursday.jpg", "friday.jpg", "saturday.jpg");

    document.write("<img src='" + arday[day] + "'>");
    // End -->
    </script>

  4. #4
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi Guys

    Quick is not the word... thanks a million... Simonf

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •