»
AnglaisFrançaisVietnamien

Imprimer - Lecture aléatoire en Midi BackGround - JavaScriptBank.com

Version complète: jsB@nk » Multimédia » Sound » Lecture aléatoire en Midi BackGround
URL: https://www.javascriptbank.com/play-random-midi-in-background.html

Lecture aléatoire en Midi BackGround © JavaScriptBank.comCet JavaScript joue un hasard midi sonore clip à l'arrière-plan. En fonction de votre navigateur, il utilise une méthode différente pour jouer le fichier MIDI: 1. Pour IE, il utilise la BGSOUND tag 2. Pour les autres navigateurs, il utilise la balise EMBED qui est couramment utilisé pour les plugins.

Version complète: jsB@nk » Multimédia » Sound » Lecture aléatoire en Midi BackGround
URL: https://www.javascriptbank.com/play-random-midi-in-background.html



JavaScript
<script><!--var sound1="5onit.mid"var sound2="5onit.mid"var sound3="5onit.mid"var sound4="5onit.mid"var sound5="5onit.mid"var sound6="5onit.mid"var sound7="5onit.mid"var sound8="5onit.mid"var sound9="5onit.mid"var sound10="5onit.mid"var x=Math.round(Math.random()*9)if (x==0) x=sound1else if (x==1) x=sound2else if (x==2) x=sound3else if (x==3) x=sound4else if (x==4) x=sound5else if (x==5) x=sound6else if (x==6) x=sound7else if (x==7) x=sound8else if (x==8) x=sound9else x=sound10if (navigator.appName=="Microsoft Internet Explorer")document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')else document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')//--></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->