Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Creating an Audio Drop Down Menu

Status
Not open for further replies.

johngiggs

Technical User
Oct 30, 2002
492
US
After searching around tek-tips and the web a little, I found dwarfthrower's post helpful, but I am trying to modify it to no avail.

Code:
<HEAD>
<script>
function playSound(sndsrc){
 document.getElementById('thesound').src = sndsrc;
}
</script>
<HEAD>

<H3><FONT FACE="Arial">Select a song from the list below.</H3>

<bgsound id="thesound" src="#" loop=1>
<select name="soundlist" onChange="playSound(this.options[selectedIndex].value)">
  <option value="../../ColdplayYellow.mp3">Cold Play - Yellow</option>
  <option value="../../DMBwherearegoing.mp3">Dave Mathews Band</option>
  <option value="../../TheWhoMagicBus.mp3">The Who - Magic Bus</option>
  <option value="../../ZeppelinFoolinRain.mp3">Led Zeppelin - Foolin Rain</option>
</select>

I want to display the player with the stop and start buttons. Something like one of the examples below would be fine:

Code:
<p><table cellpadding=0 cellspacing=0 style="border:2px solid black;"><tr><td>
<EMBED src="test.wav" CONTROLLER=true autostart=false loop=false volume=100  hidden=false width=150 height=70></td></tr></table>

or

Code:
<EMBED SRC="test2.mp3" WIDTH=300 HEIGHT=80 NOJAVA=true CONTROLS=All center=true CONSOLE=one>

Any help would be greatly appreciated.

Thanks,

John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top