Javascript - Change the greetings message on you website

December 2016




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 :

This document entitled « Javascript - Change the greetings message on you website » from CCM (ccm.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.