MIDI Studio logo
 

EMBED .MID EXAMPLE


This is the result of our script, located in a decorative table border.


A MID file is quite small in size, averaging 40 KB.  The script can be placed anywhere on the the page, after <BODY> and before the closing </BODY> tag.

Here are the settings used to play the music. Notice that in "playMedia" the first number has been set to "2" so that the song repeats two times. This is followed by height and width.

<script language="JavaScript" src="wmpCodeGen.js"></script>
<script language="JavaScript" type="text/javascript"> 
playMedia("AreYouLonesome.mid",2,50,250) 
</script>
If you are a web page author, it is common courtesy to advise your visitor where you obtained your music from and give some credit at the bottom of your page. An image is not necessary, but it does provide a link to the site without having to create a link in the text portion as I have done below.

Thanks to Les Gorven and MIDI Studio Consortium
for this arrangement of "Are You Lonesome Tonight" 
 

 
A number of other useful sizes are illustrated below. Simply change the height and width in the "playMedia" section. 

 
45x300 Media Player
45 x 300 displays all the controls, including the volume slider.
27 x 280 Media Player control
27 x 280 is the smallest size allowing all controls.
27 x 240 Media Player control
27 x 240 without volume slider
27 x 280 Media Player control
27 x 180 without volume and mute button.
27 x 80 Media Player control
27 x 80 minimum for pause/start and stop
16 x 16 is inconspicuous. Right-click functions for play, stop, pause, & volume.

 
Please click the 'Back' button below to view the list of other examples and instructions.




©2006 MidiStudio.com. All Rights Reserved.
Last Update: January 6, 2006
This site is owned, designed and produced by Les Gorven
dba Business Technologies & MIDI-Studio Publishing