A complete HTML file

Here is how a sample HTML file will look using this javascript. You can place the script anywhere within the opening and closing BODY tags, as long as you don't insert anything into the script!

See what it does       Grab the source

See more javascripts

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>

<TITLE> your page title </TITLE>

<META NAME="Copyright" CONTENT="Copyright ©1997-1999 Charlene C. Schaar">
<META NAME="Author" CONTENT="Charlene C. Schaar aka sleepy">

</HEAD>



<BODY BGCOLOR="99CCFF" TEXT="330066" LINK="003399" VLINK="660000" ALINK="660000">


Some page content--such as text and graphics--can go here!


<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>


Your page content--such as text and graphics--goes here!



</BODY>
</HTML>





Copyright ©1997-2001  Charlene C. Schaar
All rights reserved.

Hosted by www.Geocities.ws

1