<html>
<!--
Web midi JukeBox application
© Rochelle
License freeware under Not For Resale Terms
-->
<head>


<script language="JavaScript">
// Web midi JukeBox application
// © Rochelle
// rochelle@freenet.co.uk
// http://www.freenetpages.co.uk/hp/rochelle
// online demo at http://www.geocities.com/Wellesley/A...15/page2a.html
//
function playit(){
// halt any current selected played music file
var mloop = document.selform.music.length;
mloop--;
for (num = 0; num < mloop; num++){
document.embeds[num].stop();
}
// play music selected
var sel = document.selform.music.selectedIndex;
if (sel != 0) {
sel--;
document.embeds[sel].play();
}
}
</script>

</head>


<body onLoad="document.all.selbutton.style.visibility = 'visible';">




<form name="selform">


Web JukeBox <select name="music" onChange="playit();" size="1" style="vertical-align middle; vertical-align: middle; visibility: "hidden"">
<option VALUE="0" SELECTED>- select music (stopped)</option>
<option VALUE="1">Sound Filename title 1</option>
<option VALUE="2">Sound Filename title 2</option>
<option VALUE="3">Sound Filename title 3</option>
<option VALUE="4">Sound Filename title 4</option>
<option VALUE="5">Sound Filename title 5</option>
</select></p>
</form>




<embed src="soundfilename1.mid" hidden="true" autostart="false">
<embed src="soundfilename2.mid" hidden="true" autostart="false">
<embed src="soundfilename3.mid" hidden="true" autostart="false">
<embed src="soundfilename4.mid" hidden="true" autostart="false">
<embed src="soundfilename5.mid" hidden="true" autostart="false">

<!-- Your can assign the above src text within quotes for your desired sub-directory for placing your sound files. It is not necessary to suffix the sound file name as I have shown in step four above with a numerical amount for the above drop-down option box. However, the order of the above embed list will determine the order your drop-down menu value selects them with the JavaScript code.
For an example you want to use a sub-directory called \images, your emded tag would be:
<embed src="images/U2nyearsday.mid" hidden="true" autostart="false">
Make sure to feature the correct right slash character for a web directory in your HTML document!
-->


</body>
</html>

Written by rochelle