Javascript source

This javascript will display a different midi every day of the month, depending on what the date is. There is a default midi selected for those using a browser that doesn't support javascript (or who surf with javascript turned off). The attributes I've used will give you a console like that above the menu and includes the song title below it. You can place this javascript anywhere you want, as long as it it within the opening and closing BODY tags and you don't insert anything within the script!

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





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

Hosted by www.Geocities.ws

1