Script Categories













Messages >>> Time Message.

This JavaScript is pretty interesting. It will dynamically (means it is different every time) write to the screen a message that depends on the time on the visitor's clock when they load the page.

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
document.write("<center><font size=+1>")
day = new Date()
hr = day.getHours()
document.write("")
if (hr == 1)
document.write("Good morning!   1AM and you are still going! ")
if (hr == 2)
document.write("Hey, it's past  2AM!   The bars must be closed!")
if (hr == 3)
document.write("Hey, it's after  3AM!   Are you a vampire or what?")
if (hr == 4)
document.write("4AM?  You must roam all night huh!")
if (hr == 5)
document.write("Whoa! It's almost daylight and you are still going!")
if (hr == 6)
document.write("Hey, isn't it way too early to be using your computer?")
if ((hr == 7) || (hr == 8) || (hr == 9) || (hr == 10))
document.write("Good Morning!")
if (hr == 11)
document.write("11AM...What are you doing surfing JavaScript pages so early??")
if (hr == 12)
document.write("NOON!  Great, it must be time for me to eat breakfast!")
if (hr == 14)
document.write("It's 2PM. Have you eaten lunch yet??")
if ((hr == 13) || (hr == 15) || (hr == 16))
document.write("Good Afternoon!")
if ((hr == 17) || (hr == 18) || (hr == 19) || (hr == 20) || (hr == 21) || (hr == 22))
document.write("Good Evening! Welcome to prime time on the web!")
if (hr == 23)
document.write("It's almost midnight...Aren't you sleepy yet?")
if (hr == 0)
document.write("It's midnight... do you ever sleep?")
document.write("</font></center>")
// End -->
</script>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

http://www.cashadvance-loans.net/colorado/cash-advance-parker-co/


©