Display different images based on time of day

Discussion in 'Web Design and Development' started by masterapple04, Nov 1, 2006.

  1. masterapple04 macrumors regular

    May 26, 2004
    Massachusetts, USA
    I'm not much of a programmer, so I've come on bended knee with the hopes that someone knows where I could get a bit of code (I'm thinking Javascript) to do this.

    I's designing a page on which I'd like an different image to load based on the time of day. For example, if the site is loaded from 5am to 12pm, I want an image that says "Good morning!" and so on for other time periods during the day.

    Any help would be really appreciated!
  2. stoid macrumors 601


    Feb 17, 2002
    So long, and thanks for all the fish!
    I'm really rusty on my javascript, but I know that what you want to do is possible. It'll depend on the user's clock being set correctly, but it can be done.
  3. iMeowbot macrumors G3


    Aug 30, 2003

Share This Page