| |
 |
| |
| Adding sound into a web page |
| |
 |
Create and Test effective Sales Pages |
| |
There are a lot of cool features in today’s music players, and then there’s something called quality, sometimes. Hopefully, the recommendations from this website will help you make a well guided choice.
There are times when sound needs to be added to your web design. In order to do that there are two tags that you can use <BGSOUND> tag for the Internet explorer 3.0 and <EMBED> for Netscape. The <BGSOUND> for the explorer will play the sound from the web page, but the Netscape tag is a little different in that it begins to play the sound when the page is loaded but the user can turn it off, if he chooses to do so. A console will appear that will let him turn it off or change the sound. You can use several different music file. But for this example we will use a midi file. Most sound files for websites are midi files because they are much smaller and therefore easier to load.
You are exciting to know now how to do it, right? In this example, I use midi file because it give a high quality sound. I will tell you about other format later on this page. |
| |
 |
Create and Test effective Sales Pages |
| |
<EMBED SRC=your_file.midi AUTOSTART=true WIDTH=144 HEIGHT=60 LOOP=1>
Ok, I know your thinking. What does all of that mean? Well, first let’s define the commands.
The command AUTOSTART= is the command that automatically plays the sound when you load your document. If you set the value to false instead of true - the sound will only play when the user clicks the "play" button.
The commando LOOP=n is the command that informs the browser how long it should play the sound. The (n) variable could be a number, true, or false.
The WIDTH and HEIGHT determine the size of the sound control console that appears on your site. So if you set the width at WIDTH=) and HEIGHT=2, then the console will not be displayed on the site.
You could hide the consol by using the value HIDDEN=true as in the following example:
<EMBED SRC=your_file.midi AUTOSTART=true HIDDEN=true LOOP=1>
So, what do you do about the people that have browsers that don’t support embedded sound? The following example will give users that don’t support embedded sound an option so they can still hear the sound:
<a href="bgsound.mid">click here</a></noembed>
This is how the <BGSOUND> tag Works in this case.
<BGSOUND SRC=your_file.mid LOOP=1>
Notice that here LOOP can be a positive number, or -1 which equals infinite.
In order for viewers that have either explorer or netscape to hear the sound it would be best to use both the <EMBED> and <BGSOUND> tags. That way if a viewer has netscape he or she will be able to hear the sound, and if a viewer has explorer then he will also be able to hear your sound file |
| |
 |
What type of sound Files Should You Use? |
| |
As we mentioned before the best sound quality are MIDI files. But the <EMBED> command will take WAV, AIFF, and AU files. We suggest you use MIDI files for music and WAV for messages.
Check out an exclusive buoquet of web services......
|
| |
|
| |
| |
|
| |
| |
|
|