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_Month = new Date( )
Day = Day_of_Month.getDate( )

if (Day == 1)
{
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 == 2)
{
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 == 3)
{
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 == 4)
{
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 == 5)
{
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 == 6)
{
document.write("<EMBED SRC='song06.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>For My Lady</I>")
}

else if (Day == 7)
{
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>")
}

else if (Day == 8)
{
document.write("<EMBED SRC='song08.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Love Bites</I>")
}

else if (Day == 9)
{
document.write("<EMBED SRC='song09.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Losing My Religion</I>")
}

else if (Day == 10)
{
document.write("<EMBED SRC='song10.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Rebel Yell</I>")
}

else if (Day == 11)
{
document.write("<EMBED SRC='song11.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Close My Eyes Forever</I>")
}

else if (Day == 12)
{
document.write("<EMBED SRC='song12.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Only Women Bleed</I>")
}

else if (Day == 13)
{
document.write("<EMBED SRC='song13.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Unforgiven</I>")
}

else if (Day == 14)
{
document.write("<EMBED SRC='song14.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Uptown Girl</I>")
}

else if (Day == 15)
{
document.write("<EMBED SRC='song15.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Sweet Child O&#39; Mine</I>")
}

else if (Day == 16)
{
document.write("<EMBED SRC='song16.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Round and Round</I>")
}

else if (Day == 17)
{
document.write("<EMBED SRC='song17.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>The Time Of My Life</I>")
}

else if (Day == 18)
{
document.write("<EMBED SRC='song18.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>White Wedding</I>")
}

else if (Day == 19)
{
document.write("<EMBED SRC='song19.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Come As You Are</I>")
}

else if (Day == 20)
{
document.write("<EMBED SRC='song20.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>It&#39;s Still Rock-N-Roll To Me</I>")
}

else if (Day == 21)
{
document.write("<EMBED SRC='song21.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Land Down Under</I>")
}

else if (Day == 22)
{
document.write("<EMBED SRC='song22.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>You&#39;re The One That I Want</I>")
}

else if (Day == 23)
{
document.write("<EMBED SRC='song23.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>The Boys of Summer</I>")
}

else if (Day == 24)
{
document.write("<EMBED SRC='song24.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Blade Runner</I>")
}

else if (Day == 25)
{
document.write("<EMBED SRC='song25.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Heaven On Their Minds</I>")
}

else if (Day == 26)
{
document.write("<EMBED SRC='song26.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Twilight Zone</I>")
}

else if (Day == 27)
{
document.write("<EMBED SRC='song27.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>The Wizard</I>")
}

else if (Day == 28)
{
document.write("<EMBED SRC='song28.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Smells Like Teen Spirit</I>")
}

else if (Day == 29)
{
document.write("<EMBED SRC='song29.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>One Man, One Woman</I>")
}

else if (Day == 30)
{
document.write("<EMBED SRC='song30.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>Your Wildest Dreams</I>")
}

else
{
document.write("<EMBED SRC='song31.mid' AUTOSTART='true' LOOP='true' WIDTH=144 HEIGHT=60><BR>")
document.write("<I>No More Tears</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