»
EnglishFrenchVietnamese

Print - Greeting Message script - JavaScriptBank.com

Full version: jsB@nk » Snippet » Greeting Message script
URL: http://www.javascriptbank.com/greeting-message-script.html

Greeting Message script © JavaScriptBank.comThis JavaScript depends on system time to give the greeting message.

Full version: jsB@nk » Snippet » Greeting Message script
URL: http://www.javascriptbank.com/greeting-message-script.html



HTML
<script language="JavaScript"><!--    // start of script         // coded by Prasad Mapatuna        var dt = new Date();        var hr = dt.getHours();        var msg = ((hr<12) ? "morning" :"evening");        msg = ((hr>11)&&(hr<16) ? "afternoon" : msg);        msg=" Good "+msg+" !";        document.write(msg); <!-- end --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->