Full version: jsB@nk » Multimedia » Sound » Play Random Midi in BackGround
URL: https://www.javascriptbank.com/play-random-midi-in-background.html
This JavaScript plays a random midi sound clip in the background. Depending on your browser, it uses a different method to play the midi file: 1. For MS IE, it uses the BGSOUND tag 2. For other browsers, it uses the EMBED tag which is commonly used for plugins.
Full version: jsB@nk » Multimedia » Sound » Play Random Midi in BackGround
URL: https://www.javascriptbank.com/play-random-midi-in-background.html
<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-->