Portal Home > Knowledgebase > Articles Database > Showing text at certain times.


Showing text at certain times.




Posted by respite, 11-14-2010, 06:18 AM
Hi WHT, What I'm looking for is a script that allows me to show different text at 2am, 4am, 6am, 8am, 10am, 12pm, 2pm, 4pm, 6pm, 8pm, 10pm and 12am most importantly it needs to adhere to GMT+8 timezone and not the computer or server local time. Also to add I would much like this to be shown on a .html page (Javascript???)

Posted by topgun, 11-14-2010, 06:49 AM
Here is an example in PHP. http://www.wellho.net/resources/ex.p...104/houred.php

Posted by HostForMe, 11-16-2010, 10:08 PM
Hello Hostestate, The following Javascript/HTML code will write particular texts to a
depending on the time at GMT+8. Copy it to an html file and observe the output. I trust that you are able to incorporate it into your website once you closely examine the code. However, if you have any questions, please feel free to ask. Sincerely, HFM

Posted by tim2718281, 11-18-2010, 09:18 AM
So it does not need to take account of daylight saving time?



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read