Setting up the Mini-Jukebox
You will need to create several files that compose the Jukebox, and add some JavaScript code to the page that generates the Jukebox.
First, create a directory to put the Jukebox html files and the midi files into. Calling it something logical, like "midi" or "jukebox" makes sense, but it's up to you.
Copy the following and save it as "minijuke.html" :
Alas, your browser doesn't do frames.
Next copy the following and save it as minilist.html -- it does the selecting of songs.
Javascript Jukebox Lite
Copy the following and save it as "minipix.html" :
Jukebox Player
Then download the
Jukebox graphic and save it in your Jukebox directory as "juke.gif" (with Netscape, right-clicking on the link will allow you to save the link) or create your own graphic.
Next copy the following and save it as "miniplay.html"
Javascript Jukebox
Next, copy and save the following as "peanuts.html"
and save the file
peanuts.mid to your midi directory, giving it the name "peanuts.mid" (with Netscape, right-clicking on the above
link will allow you to save the link).
Create your other pages of embedded MIDI files using this as a template. Until you create other HTML pages with embedded MIDI's, only the Peanuts choice will work. Once you get the Jukebox working with your other songs, you can, of course, get rid of the files "peanuts.html" and "peanuts.mid" and the Peanuts choice in the songlist.
A couple of things to note here: don't forget the final
tag after the final
tag. For some JavaScript reason, the Jukebox likes it to be there.
Copy and paste the following into the
section of the page you are calling Mini-Jukebox from:
If you find it necessary to adjust the width of the Mini-Jukebox because the play button is not visible (this can happen if your song titles are longer than my sample titles), change the
width=220 number to a larger value -- say 250 or 300. A little experimentation will find the ideal width. Just for good measure be sure to test with both Netscape and Microsoft Internet Explorer if possible; they WILL display things slightly differently.
Paste the following where you want the button that generates the Mini-Jukebox:
Troubleshooting
Not working? Check the Troubleshooting page for suggestions.