
|
Background Music-
Before you add any music to your website, 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. It is always best to offer your visitors option when it comes to playing music. Types of Online Music Files: Midi (.mid) is a good sound format to use because these files are generally smaller and load quickly. You can also use .mp3 or .wav (wave) music, but keep in mind that if you do go this route, it will take the music longer to load because the file size will be larger. Be mindful of those who still have dial up Internet access. Once you have the music file you want, you need to upload it to your web server. Attaching the File:
This text will be replaced by the flash music player.
Open the web page you want the song to load with. You'll
have to insert the following HTML code into your site, but first
you'll need to edit it.
<embed src="musicfile.wav" autostart="true" loop="false">
You'll have to modify the above HTML code slightly to fit your website's
configuration. Replace musicfile.wav with the name of the music file you chose to upload
to your web server. The code above also assumes you've saved the file in the
same location of your homepage (index.html). If you save the file inside a
folder on your root then you'd have to change the path slightly. Let's say you want to load the song on your homepage (page name is index.html).
You save the song file to a folder called "music" located off your root/main
directory. Then the code you insert in your index.html page would look
like something this:
<embed src="/music/musicfile.wav" autostart="true" loop="false"> This is telling the browser to look for the song file at...
Edit the Media Player:
The autostart attribute tells the song file how to begin. If you have this set to "true", the song file will begin playing automatically when the page loads. If you put in "false", the sound file will not start automatically and the visitor will have to start the song by using their embedded media player. The loop attribute tells the song how many times to play. If you have this set to "true" then it will play over and over again automatically. If you have it set to "false" it will play once and stop. The hidden attribute tells the browser whether or not to hide the media player. It's not a good idea to leave this value at "true" unless you know for sure your visitors don't want to stop the music. You don't want your music to annoy them to the point they leave because they can't figure out how to turn the music off. |
Great Websites: Some of these pages list great links and
ideas found online, while others are some of Website Creations personal
favorites or websites we have created:
Website Creations was developed to empower online users in making
quality choices on their personal and business websites. Website Creations
offers creative solutions to design, enhance and improve your website.
Website Creations
11300 N Fuego Drive Dunnellon, Fl 34434 Phone: 352 533-3210 Email Us |
| Privacy Disclaimer Advertise with Us Contact Us |