|
|
Code for
playing sound files: |
<embed src="filename.mid" border="0" width="0"
height="0" autostart="true" loop="true">
width="16" height="16"
will give an on/off button |
| 1 |
A music
file can be in .mid or .wav format
.wav format takes a longer time to load than .mid format and takes up a lot
of memory
The code can be put anywhere between the body tags., usually at the
beginning/end of the page |
| 2 |
border="0"
width="0" height="0" means the music player will not show up in the WebPages
If numbers are used instead of zeros, the music player will show up in the
size specified |
| 3 |
loop="true" allows the
music to loop |
loop="false" or
loop="0" will stop the music after playing once |
|
Sample
HampsterDance |
|
Adding sound to your site gives it another dimension and may
seem like a cool idea. But believe it or not, most people do not appreciate
this addition to a Web site. Think about it. Almost all computers come with
a sound card and a CD-ROM drive. What do you think surfers are using this
for? They are probably listening to their favorite tunes. So when your midi
version of "My Heart Will Go On" pops on, it is an annoyance. By far the
most annoying sound feature would have to be the lack of a control button on
the page to shut off the sound. In many cases it can be as easy as hitting
your stop button to shut off the sound, but most people don't know this and
it doesn't always work. Be smart; give your surfers the option.
Better yet, eighty-six it. You don't really need it. Continuous midi music
is like SPAM for the ears. |
|
|
|