Log in

View Full Version : Display an image at a exact time of day.



Dazzatron
02-10-2012, 06:15 AM
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.

fastsol1
02-10-2012, 02:38 PM
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.