Background Music
Before you start, you should be aware that background music that automatically starts playing when a web page is loaded may not be appreciated by a large number of your visitors. Some of them, when greeted with the sudden blaring of music from their speakers, may immediately hit the "BACK" button on their browser. This may occur even if you're playing a piece of music that you think is well loved by everyone. Keep in mind, that there are people who are online in public libraries, at work, or at night when others are asleep.Step 1
Find a music or sound file that you'd like to use. Midi (.mid) is usually good sound format to use because midi files are generally and load quickly. The downside is that midi filds are not common and will usually require a audio-conversion. You can convert audio files at: Media Convert
You can also use .mp3 or .wav (wave) music file, but keep in mind that if you do, it will take the music longer to load because the file size will be larger. As a result, the music file's playback will be choppy and could slow the visitor's computer (especially if your website visitor has a dial-up connection).
Step 2
Next, upload the music file to your web server either using an FTP program or your web host's file management control panel. click for more information about website hosting. If the music file has a long name like: "dancehallcityjam.mp3" shorten the file name. Shortening the file name will decrease the probabily of upload and playback problems for your website. In this example, try shortening the file name to "dancehall.mp3"
Step 3
Now open the web page you want the song to load with using either a website editor or notepad. You will have to insert the following HTML code into your site, but first you'll need to edit it.
You will need to change the code above to match your audio file. In our example above, if you shortened the audio file to "dancehall.mp3" you would input that in place of "musicfile.wav"
Thus: for our embeded example:
No comments:
Post a Comment