Problem je, ze mimo IE to hrat spise nebude, je treba mit nainstalovane plug-iny (Mozzila, ...)
U linuxu zvlaste je treba mit prehravac ci plug-in na MIDy, protoze to neni soucasti default prehravace.
BGSOUND:
Src="jmeno" (axelf.mid)
Loop="false"/true/integer (opakovat ano/ne/ztisovat)
Volume="50"(1-100)
MS popis BgSound EMBED:
Src="jmeno"
AutoStart="false"/true
Loop="false"
Controls="console"/smallconsole/playbutton/pausebutton/stopbutton/volumelever
StartTime=00:10 (minuty:sekundy)
EndTime=00:20
Volume="30"
mastersound
Hidden="false"/true
+ vzhled+JS (name, align, height,...)
MS popis Embed OBJECT:
Data=""
style=display:"none";
ClassID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
+ vzhled+JS
MS popis Object
EMBED Ovladany JS - prepisovani spanu, SRC se da zmenit pouze pri nacitani dokumentu
<SCRIPT language="javascript">
function hraj(nazev) {
var s = document.getElementById("musicplay");
var z = document.getElementById("musicspan");
s.stop();
text='<EMBED id="musicplay" src="' + nazev;
text+='" type="audio/midi" autostart="true" mastersound hidden="true"></EMBED><NOEMBED>Error: Nelze spustit prehravac midi!</NOEMBED>';
z.innerHTML=text;}
</script>
<span id="musicspan">
<EMBED id="musicplay" src="airwolf.mid" type="audio/midi" autostart="true" mastersound hidden="true"></EMBED>
<NOEMBED>Error: Nelze spustit prehravac midi!</NOEMBED>
</span>
OBJECT Ovladany JS - jako EMBED, activeX plug-in
<script language="javascript">
function hraj(nazev) {
var s = document.getElementById("musicplay");
var z = document.getElementById("musicspan");
s.stop();
text='<OBJECT id="musicplay" data="' + nazev;
text+='" type="audio/midi" autostart="true" style=display:"none";></OBJECT>';
z.innerHTML=text;}
</script>
<span id="musicspan">
<OBJECT id="musicplay" data="Download/notesmid/airwolf.mid" type="audio/midi" autostart="true" style=display:"none";></OBJECT>
</span>