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("<EMBED SRC='song01.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Against All Odds</I>")
}

else if (Day==1)
{
document.write("<EMBED SRC='song02.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Long Distance Runaround</I>")
}

else if (Day==2)
{
document.write("<EMBED SRC='song03.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Walk Of Life</I>")
}

else if (Day==3)
{
document.write("<EMBED SRC='song04.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Waiting For A Girl Like You</I>")
}

else if (Day==4)
{
document.write("<EMBED SRC='song05.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>A Farewell To Kings</I>")
}

else if (Day==5)
{
document.write("<EMBED SRC='song06.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>For My Lady</I>")
}

else
{
document.write("<EMBED SRC='song07.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>You Can&#39;t Always Get What You Want</I>")
}
// stop hiding -->
</SCRIPT>


<!-- provide alternative for javascript disabled browsers -->
<NOSCRIPT>
     <EMBED SRC="song00.mid" AUTOSTART="true" LOOP="true" WIDTH=144 HEIGHT=60>
     <BR><I>Longer</I>
</NOSCRIPT>


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



</BODY>
</HTML>





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

Hosted by www.Geocities.ws

1