Sound and the Web

October 17, 2002

Add sound to your page using the <EMBED> tag

Attributes for Sound:

AUTOSTART="TRUE"    or    "FALSE"

LOOP=n    loop n times    OR    LOOP=TRUE    to loop infinitely until user hits STOP

HIDDEN="TRUE"    Hides controller from page AND for some browsers
AUTOHIDE="TRUE"

STARTTIME=00:50    plays a portion BEGINNING at that time (Minutes:seconds)

ENDTIME=01:20    plays a portion until that time (Minutes:seconds)

VOLUME="60%"     changes the sound volume, but only downloads it once


Attributes for added CONTROLS ONLY:

CONTROLS= "console     smallconsole     playbutton     stopbutton     pausebutton"

WIDTH=n    HEIGHT=n     (This is the SIZE of your above controls)

    CONTROLS="CONSOLE" WIDTH=135 HEIGHT=60
    CONTROLS="PLAYBUTTON" WIDTH=34 HEIGHT=23
    CONTROLS="SMALLCONSOLE" WIDTH=144 HEIGHT=15

ALIGN=direction     LEFT     RIGHT     CENTER    (Aligns controls on your page)

HSPACE=n    VSPACE=n     (Space between label and controls)

HIDDEN="TRUE     or     AUTOHIDE="TRUE"     to hide controller


To Have A Sound Play As Soon As A Page is Opened (and Loop), use:

<EMBED SRC="sound.wav"   AUTOSTART="TRUE"   LOOP="TRUE"   HIDDEN="TRUE">

OR

<BGSOUND="sound.wav"   LOOP=infinite>    For Internet Explorer Only


Adding a Link to a Sound

<A HREF="sound.wav"><IMG SRC="soundicon.gif"></A>   This file is 55kb

Example:
This file is 55kb


Optional Controllers (If you want the viewer to control the audio)

      CONTROLS="console" WIDTH=100 HEIGHT=30

      CONTROLS="playbutton" WIDTH=30 HEIGHT=30


Back to Calendar