S
Steevo
Does anyone know how I can alter the following script so that I can place it
in the header of my web page. I would then like to be able to insert a
command in the body section to make the "good morning" etc. appear?
<SCRIPT LANGUAGE="JavaScript">
today = new Date();
time = today.getHours();
if(time < 12)
{document.write("Good Morning")}
else
if(time <18)
{document.write("Good Afternoon")}
else
{document.write("Good Evening, ")}
</SCRIPT>
Many thanks
in the header of my web page. I would then like to be able to insert a
command in the body section to make the "good morning" etc. appear?
<SCRIPT LANGUAGE="JavaScript">
today = new Date();
time = today.getHours();
if(time < 12)
{document.write("Good Morning")}
else
if(time <18)
{document.write("Good Afternoon")}
else
{document.write("Good Evening, ")}
</SCRIPT>
Many thanks