Acest cod îl puneşi unde vreţi.
Code
<SCRIPT LANGUAGE="JavaScript"> currentTime = new Date();
if (currentTime.getHours() >= 6 && currentTime.getHours() <= 11 ) document.write("Buna Diminiata ");
if (currentTime.getHours() >= 12 && currentTime.getHours() <= 17 ) document.write("Buna ziua ");
if (currentTime.getHours() >= 18 && currentTime.getHours() <= 23) document.write("Bună seara ");
if (currentTime.getHours() >= 0 && currentTime.getHours() <= 5) document.write("Nu ai somn ");
</SCRIPT>