»
EnglishFrenchVietnamese

Print - Background Music (MIDI format) - JavaScriptBank.com

Full version: jsB@nk » Multimedia » Sound » Background Music (MIDI format)
URL: https://www.javascriptbank.com/background-music-midi-format.html

Background Music (MIDI format) © JavaScriptBank.comThis JavaScript will randomly play a music file from a list you provide.

Full version: jsB@nk » Multimedia » Sound » Background Music (MIDI format)
URL: https://www.javascriptbank.com/background-music-midi-format.html



JavaScript
<script language="javascript">/*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*///ENTER YOUR FILE NAMES BELOW. DON'T FORGET THE QUOTES AROUND THE FILE NAMES.var midinames=[ 'mk.mid' , 'halloween.mid' ];var srcurl=midinames[(Math.floor(Math.random()*midinames.length))];if(document.layers)document.write('<layer top="-20" left="0"><embed src="'+srcurl+'" autostart="true" loop="true" width="10" height="10"></embed></layer>');else if(document.all)document.write('<bgsound src="'+srcurl+'" loop="-1">');</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->