Zajímavosti Melodie Piškvorky JS hry

Melodie pro mobily v MID


JavaScript, Test: IE ok, Opera neco, Firefox chce plugin
melodie.exe 200kB 1500 melodií *.MID

Prehrávač melodií 48/1500

Filmy a seriály Pohádky Ostatní

Play = kliknutí na melodii (JavaScript)
>> = play / ulozit melodii... (DownLoad file)
<font color="#FF0000">Error: Nelze spustit prehravac midi!</font>



Zapis zvuku do www:
1. <BGSOUND src="jmeno">
2. <EMBED src="jmeno" autostart="false" type="audio/midi" mastersound></EMBED>
   <noembed>neni prehravac midi zvuku</noembed>
3. <OBJECT data="jmeno" autostart="false"></OBJECT>
3b activeX
   <OBJECT classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
   <param name="src" value="jmeno">
   </object>
4  <META REFRESH



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>

OBJECT - jiny priklad, activeX plug-in, nahravani Playlistu.asx
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs" dir="ltr">
<head>
<meta http-equiv="Content-script-type" content="text/javascript" /> 
<meta name="MSSmartTagsPreventParsing" content="true" />
</head>
<h2>Player</h2>

<object id="MediaPlayer" name="MediaPlayer"
  classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
  codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
  width="320" height="69"
  standby="Nahravaji se soucasti Microsoft Windows Media..."
  type="application/x-oleobject">
  <param name="filename" value="playlist.asx" />
  <param name="autosize" value="1" />
  <param name="autostart" value="1" />
  <param name="animationatstart" value="1" />
  <param name="displaysize" value="1" />
  <param name="showcontrols" value="1" />
  <param name="showaudiocontrols" value="1" />
  <param name="showdisplay" value="0" />

  <param name="showgotobar" value="0" />
  <param name="showpositioncontrols" value="1" />
  <param name="showstatusbar" value="1" />
  <param name="showtracker" value="1" />
  <param name="transparentatstart" value="0" />
  <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
    src="playlist.asx" filename="playlist.asx"
    name="MediaPlayer" id="MediaPlayer"
    width="320" height="69"
    autosize="0"
    autostart="1"
    animationatstart="1"
    displaysize="1"
    showcontrols="1"
    showaudiocontrols="1"
    showdisplay="0"
    showgotobar="0"
    showpositioncontrols="1"
    showstatusbar="1"
    showtracker="1"
    transparentatstart="0">
  </embed>
</object>
<noembed>
<a href="sound.mid" target="_blank">St hnout z znam</a><br />

</noembed>
</body>
</html>


META REFRESH - zvuk se pusti po zobrazeni stranky, pokud jej dokaze spustit nejaka aplikace. Melo by udajne fungovat vsude.
<html>
<head><meta http-equiv="refresh" content="2; url=pisnicka.mid"></head>
<body></body>
</html>