PDA

View Full Version : Display Specific Text Based on Time Detected?



wpthebest
03-13-2007, 10:29 PM
1) Script Title: Local Time script

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex6/localtime.htm

Question: Would it be possible to have this script output a line(s) of text at certain intervals instead of the actual time based on some conditions?

For example, the script already gets the time from the webserver and outputs it, but at a specific time can I have it output text instead? Like so:
If server time = 08:00 AM then output "It is breakfast time!" and keep message displayed for about 5 minutes and then go back to displaying the time.
else If server time = 12:15 PM then output "It is lunch time!" and keep message displayed for about 5 minutes and then go back to displaying the time.
else If server time = 5:30PM then output "It is dinner time!" and keep message displayed for about 5 minutes and then go back to displaying the time. ETC..ETC...

Also, could it be possible to make the non-time message continuously flash (i.e. It's is breafast time!") and then stop flashing when it goes back to displaying the time again?

Thanks so much in advance for your help!