<-- Zurück zu Bastian´s Sound-Page

Wie kann man nur einen Background Sound configurieren?

Saving Music
File Names
Foreground Music
Background Music
User Play
Automatic Play
Continuous Play
Small Console Control
Hidden Music

 



SAVING MUSIC

To use a music file, you must first save the file to your computer in the same way as you would a graphics file.

  1. Right click on the link to the music.
  2. Select "Save link as" (Netscape) or "Save target as" (Internet Explorer) from the pop up menu.
  3. This will bring up the folders on your desktop. Select where you want to store the file.
  4. At this stage, you can also re-name the file. In the "Filename" box, type in the name you wish to use.
  5. Click "SAVE"
  6. Then upload the saved files to your homepage.
DO NOT link directly to the music file in the collection where you found it. This causes problems for their site, as well as problems for you if they delete or rename the music.


FILE NAMES

Music file names are case sensitive. This means that when you enter the filename, you must use the EXACT name of the music file. faraway.mid is NOT the same as Faraway.mid or faraway.MID You must always use the filename correctly, otherwise your music will not play!


FOREGROUND MUSIC

To make a music file play when clicked, you simply link it using the following tag, where "filename.mid" is the full name of the sound file you are using, for example, "midione.mid" or "bvhcop.wav".
If your background music is a midi file (and most are), then you cannot get a foreground midi file to play when requested, as your midi player will be busy playing your background music. However, a foreground wav file can play over a background midi.

<a href="filename.mid"> Play this music!</a>

.mid file
This should begin to play automatically.
For example,
<a href="midione.mid">Play this midi file!</a>

Play this midi file!

.wav file
This may take a little time do download and play. Don't worry, I've chosen a short one!
For example,
<a href="bvhcop.wav">Play this wav file!</a>

Play this wav file!



BACKGROUND MUSIC

There can be a conflict between the tags needed for background music with Netscape and Internet Explorer browsers. To make your music accessible to more people, it is wise to include both Netscape and I.E tags.

Netscape Netscape supports
<embed> tags.
Internet Explorer I.E supports
<bgsound> tags.

If you want the tags that will be supported by both Netscape and I.E, then use the following, where "filename.mid" is the full name of the sound file you are using, for example, "midione.mid" or "bvhcop.wav".



USER PLAY

<embed src="filename.mid" width=145 height=55>
<noembed>
<bgsound src="
filename.mid">
</noembed>


This will produce a music player which can be clicked to start and stop the music.


<bgsound src="music/yesterday.mid">

For a smaller music player, change the size tags to width=145 height=35

<bgsound src="music/yesterday.mid">

Internet Explorer IE4.0 does not display the smaller player the same as the IE3.0 series. IE4.0 viewers will see no difference between the players.


AUTOMATIC PLAY - ONCE ONLY

<embed src="filename.mid" width=145 height=55 autostart=true>
<noembed>
<bgsound src="
filename.mid">
</noembed>


This will produce a music player. The music will play automatically once your page has loaded. It will play through once and then stop.



AUTOMATIC PLAY - CONTINUOUS

<embed src="filename.mid" width=145 height=55 autostart=true loop=true>
<noembed>
<bgsound src="
filename.mid" loop=infinite>
</noembed>


This will produce a music player. The music will play automatically once your page has loaded. The music will play continuously.



SMALL CONSOLE CONTROLS

For all of your visible play options, you can substitute a small music control console, instead of the larger music player.
Simply use the following code:

<embed src="filename.mid" width=51 height=15 controls="smallconsole">
<noembed>
<bgsound src="
filename.mid" controls="smallconsole">
</noembed>


This will produce a small console consisting of an "ON" and "OFF" button.


<bgsound src="music/yesterday.mid" controls="smallconsole">

For a slightly larger version, change the size tags to width=144 height=15

<bgsound src="music/yesterday.mid" controls="smallconsole">

Internet Explorer IE4.0 does not display the small console control the same as the IE3.0 series. It looks "part cut off", but is still usable.

I have been told that viewers with Crescendo do not see the correct control console either.



HIDDEN BACKGROUND MUSIC

<embed src="filename.mid" hidden=true autostart=true loop=true>
<noembed>
<bgsound src="
filename.mid" loop=infinite>
</noembed>


NO music player will appear on your screen. The music will be hidden.
This coding will produce automatic start, continuous play music.

Continuous music that you cannot turn off can get very annoying, so ... for hidden background music that starts automatically, but only plays through once and then stops, use this coding:

<embed src="filename.mid" hidden=true autostart=true>
<noembed>
<bgsound src="
filename.mid">
</noembed>


 <-- Zurück zu Bastian´s Sound-Page