J
Jack Sirulnikoff
Hi,
I'm trying to write some javascript to set up a series of MIDI files as
background using <EMBED>. I can get it to work in general, but the main
problem I have is:
what coding can be used so that each subsequent selection only starts when
the previous selection has finished.
an additional problem will be:
how to clear the control panel from the display after the selection has
finished.
The coding I'm trying to use is something like this in the <BODY>:
<SCRIPT>
var soundFile = "jsrgo1gm.mid,jsrgo2gm.mid,jsrgo3gm.mid";
for (var counter = 0; counter < 3; counter++) {
// something in here to determine when the next piece can start, and to
clear the Console
var sounds = soundFile.split(",");soundFile = sounds[counter];
document.write('<embed src="'+soundFile+'" autostart="true"
controls="Console" width=144 height=60></embed>');
}
</SCRIPT>
<noscript><embed src="jsrgo1gm.mid" autostart="true" ></embed></noscript>
<noembed><bgsound src="jsrgo1gm.mid" ></noembed>
I would appreciate any help you can provide, and if there is an altogether
better way of doing this, I would appreciate hearing about that as well.
Thanks,
Jack
I'm trying to write some javascript to set up a series of MIDI files as
background using <EMBED>. I can get it to work in general, but the main
problem I have is:
what coding can be used so that each subsequent selection only starts when
the previous selection has finished.
an additional problem will be:
how to clear the control panel from the display after the selection has
finished.
The coding I'm trying to use is something like this in the <BODY>:
<SCRIPT>
var soundFile = "jsrgo1gm.mid,jsrgo2gm.mid,jsrgo3gm.mid";
for (var counter = 0; counter < 3; counter++) {
// something in here to determine when the next piece can start, and to
clear the Console
var sounds = soundFile.split(",");soundFile = sounds[counter];
document.write('<embed src="'+soundFile+'" autostart="true"
controls="Console" width=144 height=60></embed>');
}
</SCRIPT>
<noscript><embed src="jsrgo1gm.mid" autostart="true" ></embed></noscript>
<noembed><bgsound src="jsrgo1gm.mid" ></noembed>
I would appreciate any help you can provide, and if there is an altogether
better way of doing this, I would appreciate hearing about that as well.
Thanks,
Jack