You can play file as the page opens (1) or have a
button that allows the user to control the playing (2,3).
1) To have aa audio file play as the page opens (similar to main page)
add the following code:
<embed src="audio/sound.wav"
width=10 height=10 hidden=true autostart=true loop=2>
2) You can also use a built-in controller to play a sound also (with no new windows)
<embed src="audio/sound.wav"
width=10 height=10 hidden=true autostart=true loop=2 controls=playbutton>
ex:
3) Or to have a button (text or Graphic) play an audio file add the following code:
(controller opens in a new window)
Click <a href="audio/sound.aiff">here <a/> to play a sound.
ex: Click here to play a sound.
Here are the commands for audio files:
embed src=
This command is used to embed a file directly into the web page
width/height
Allows you to set the size of the playing area
hidden
sets the visible or not - true/false
autostart
Set playback to start on load. - false/true
loop
Set the audio to repeat or not - false/true (if true you may use a number of loops) 2
volume
set the volume of the playback 0-100
Controls
Type of Controller : default, console, smallconsole, playbutton, pausebutton, stopbutton, volumelever