Help With

How To

Settings & Misc

Help Wurd



Sound and Personal Web Pages @att.net

There are a few different ways to get sound on your page. Please keep in mind that the way sound is played on a browser depends upon the type of plugins that are installed, so the code you choose might not work with all browsers.

Typically the sound code uses two lines. One for Netscape and IE4 and newer, and one for the older versions of IE.

This information can be used for either midi files OR wave files. If you're looking for information on streaming audio or video files, see our Streaming page.

We're using midi files in our examples. Just substitute the name of your sound file for the midi file shown in the examples below. The code shown below assumes that your sound file is loaded into the same directory as the page containing the code.

These codes can be copied and pasted onto your page.

Please note:

Source code for a Simple Link

This will open a sound file by clicking on it.

<a href="mymidi.mid">click here to hear my midifile</a>

Source code for Background Sound

This code will auto play sound in the background and cannot be turned on or off. Works well with both Netscape and MSIE

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

Source code to Auto Start or Press to Play

This code will auto start or a button can be pressed to play.

Code Results
autostart="true" Starts music when page loads
autostart="false" Visitor must press play button
width="200" height="55" Fits crescendo midi player
width="144" height="55" Fits the live audio player
width="144" height="60" Fits both the live audio and crescendo players

Sample Code:

<embed src="mymidi.mid" width="144" height="60" autostart="true"
loop="true">
<noembed><bgsound src="mymidi.mid" loop="infinite"></noembed>

This is for the Crescendo Midi Player only.

Code Results
autostart="true" Starts music when page loads
autostart="false" Visitor must press play button
loop="true" Sound plays continuously
loop="one" Sound plays one time through
width="16 height="16" Displays a musical note

Sample Code:

<embed src="mymidi.mid" width="16" height="16" autostart="true" loop="true">
<noembed><bgsound src="mymidi.mid" loop="infinite"></noembed>

This is an example of what the plug in will look like with the different size settings.

plug-ins

For more info on Multimedia and Graphics on your page look below:

Back to top

Need Additional Help?

If you can't find the answers you need, please try:

  1. The help file for the application you are using.
  2. Our FAQs.
  3. The AT&T Worldnet Help Newsgroups.
Note: AT&T DSL Service support is available at http://dslhelp.att.net