Javascript - Change the greetings message on you website

June 2017




Introduction


As for this tip in PHP: Change the greetings message on you website with PHP.

Javascript also allows you to change the greeting message on you website according the the time of the day. The changes will be made according tho the clock of the user and not according to the server (time), hence improving the process.

The script


Insert this script in your HTML source code:





Thanks to le petit marocain for this tip.

Related


Published by jak58. Latest update on April 27, 2010 at 08:54 AM by jak58.
This document, titled "Javascript - Change the greetings message on you website," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).