Results 1 to 2 of 2

Thread: Display an image at a exact time of day.

  1. #1
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Display an image at a exact time of day.

    Hi

    I'm not very experienced in PHP but I am looking to get a script to display a image at a set time based on a persons computer time not the server time. Such as at exactly 19:45 image1 will appear but all other times of the day it will show image2. I have searched around but all I can find is stuff based on the Server time so can it be done using a persons computer time.

    Any help would be appreciated.

  2. #2
    Join Date
    Jul 2010
    Location
    Minnesota
    Posts
    256
    Thanks
    1
    Thanked 21 Times in 21 Posts

    Default

    From what I know and can find, you will need to do this with javascript and I think this function will help you - Date.toLocaleString().
    You may want to post a topic in the javascript forum if you don't know how to do this.

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
  •