This javascript will display a different greeting depending on what day of the week it is for your visitor. There is a default welcome message provided for those using a browser that doesn't support javascript (or who surf with javascript turned off). |
See how it's used Grab the source See more javascripts |
<SCRIPT> <!-- start hiding // Written by: // C. Schaar aka sleepy // http://www.geocities.com/Heartland/Hollow/1000/ var Day_of_Week = new Date( ) Day = Day_of_Week.getDay( ) if (Day==0) { document.write("Hey...what are you doing online? Don't you know everyone should take at least one day off a week?") } else if (Day==1) { document.write("Time to go back to work, huh?") } else if (Day==2) { document.write("It's Tuesday!") } else if (Day==3) { document.write("Hey, it's hump-day...otherwise known as Wednesday!") } else if (Day==4) { document.write("Hang in there...it's almost Friday") } else if (Day==5) { document.write("About time...Friday!") } else { document.write("Saturday...time to relax and play!") } // stop hiding --> </SCRIPT> <!-- provide alternative for javascript disabled browsers --> <NOSCRIPT> Who know's what day of the week it is? </NOSCRIPT> |