Pages

Saturday, 9 June 2012

How to Upload Music to a Web Page BY LOUISE BALLE

Music adds entertainment value to your Web page. A good song or sound clip can really set the mood for the Web visitor. For instance, if you post a website with a poem, your visitor may enjoy hearing some mellow jazz music in the background. If you want someone to hear a sampling of your own music, you can simply post the clips on your Web page instead of sending a large email. There are two very straightforward ways to upload music files to your Web page. Step 1 Save all of your music files in a folder on your computer that you can reference easily, preferably a "Music" folder in the same place where you store your other website files. Common music files for online upload include MP3 (.mp3), MIDI (.mid or .midi), RealAudio (.ram) and WAVE (.wav). Step 2 Log on to your Web server (via FTP or your Web host's file manager tool). Transfer the music files from your computer to your Web server. This may take a few minutes. Step 3 Edit the HTML code of the Web page where you want to play the music. Embed the music file into your page by typing inside the "" tags at the beginning of your HTML document. Replace "musicsong.wav" with your own music file name. This will cause the music file to play automatically when the user opens the site -- it cannot be shut off. Step 4 Type as an alternative (anywhere within the "" tags of your HTML document) if you want a button to appear on the page giving the visitor the option to turn off the music. Replace "musicsong.wav" with your music file name and change the width and height of the button as you see fit. Make the "autostart" attribute "FALSE" if you want the user to click the play button in order for the music to play and "TRUE" if you want the music to play as soon as the page loads. Tips Keep the size of your music file in mind. A common music song file between four and six minutes long will be about one or two megabytes in size. Since it is a fairly large file, it will use up a significant amount of bandwidth on your Web server when loaded. You can make the audio loop (play over and over again) by changing the "loop" attribute to read "true" instead of "false" in Step 4.

No comments:

Post a Comment