A SIMPLE HTML CODE THAT NEARLY ALWAYS
WORKS
FOR EMBEDDED HIDDEN MUSIC
EENCY WEENCY SPIDER SHOULD BE PLAYING
It is currently set to be hidden, to auto-start on page load and to play
two times.
You set the loop=setting to a figure one less than
you want the song to play.
To play only once set loop= to false
If you have Crescendo and you have checked your option to not allow looping it will only play once.
Check the code. The code for the embedded music is located in the blank space between the stars below.
All you have to do is copy and paste this code into your web page, change the coding to the url where you want your midi file located and change the name of the song to your song and upload your .html page and your .mid file to your server and you should be ready to play music. (Stay away from CAPITOL LETTERS) Get in the habit of making all your file names lower case and you won't have as many problems!!!
Maybe I better explain the above paragraph a little further.
All files whether plain ascii which is plain old ordinary text which your
HTML are or Binary, which are your midi's, Wav's, graphics and everything
else that is not plain text are uploaded to your server via FTP "File Transfer
Protocol". This makes no difference whether your using the Web Page
servers built in uploading program or whether you have a stand-alone FTP
program such as Cute, WS FTP and others. Many FTP programs make the
decision for you whether the file is a ascii text file or a binary file,
such as the program
WS FTP. Unfortunately their are FTP programs such as the built-in ones
in older versions of AOL where you have to tell the program what type of
file it is before uploading it. You choose wrong, chances are your
page will not load or your midi will not play. So just upload all your
html and text files as ascii and upload
everything else as binary, and 99.9%
of the time the files will work.
Some of these FTP programs will automatically convert your file names to lower case, remove ~ Tilde's, etc. whether you like it or not. So you try to upload ~JACKS.MID and the ftp program converts the file name to jacks.mid. Now the midi file is on the server as jacks.mid, however your web page has the html code in it to play ~JACKS.MID, because the ftp program only converts file names, not what you have inside your html file.
BIG PROBLEM, you click on the file name on
your web page and it will not play or you will get a 404 ERROR "File
Not Found". (This really makes you mad,
because it played just fine when you tested it locally.)
The reason it did was because you have the midi file located
in the exact same directory on your hard drive as you have your html file
and Windows95/98 and most browsers don't care that the midi and the
html is different as long as you have it named the
same or because you just clicked on the midi and it played fine with
your off-line midi player.
To go one step further, some browsers could not care less what file name you have (as long as you don't have any blank spaces and you have the files named the same). Others are very picky and won't play a file you have as ~JACKS.MID, but will play it if you have it as jacks.mid, this is of course assuming that your FTP program uploaded the file the way you had it named and did not convert it.
If your FTP program converted it, and you have a picky browser, such as older versions of AOL, now you have two problems for why your midi won't play.
One last little thing which I will not elaborate on. Some browsers will read HTML file names ending with the extensions .htm and .html whether you have the file named jacks.htm or jacks.html but others are picky and will not open the file if you have your link coded as jacks.html but you accidently uploaded the file to your server as jacks.htm. Get in the habit of making all your HTML file names end in .html. I currently do not know of any browser that can't find, read and open that, but there are some that will not find and open jacks.htm file when you have asked it to find jacks.html.