Solved

Trying to get Windows Media Player to play WAV file using EMBED tag.

Posted on 2008-06-19
2
386 Views
Last Modified: 2013-12-07
I have a simple <EMBED> tag that plays a wav file. It works fine for me in my IE, but I have a user that has 'cluttered' IE toolbar.

Right now, he has Real Player trying to play my wav file.

How do i change it so that Windows Media Player will associate with my EMBED tag?
0
Comment
Question by:Neil2526
  • 2
2 Comments
 
LVL 10

Expert Comment

by:bluefezteam
ID: 21822555
If you want to play it straight in the browser try this...

<script>
function EvalSound(soundobj) {
  var thissound= eval("document."+soundobj);
  thissound.Play();
}
</script>

<img src="play.gif" onClick="EvalSound('sound1')">
OR
<a href="#" onMouseOver="EvalSound('sound1')">Move mouse here</A>
0
 
LVL 10

Accepted Solution

by:
bluefezteam earned 500 total points
ID: 21822570
and the important bit

<embed src="success.wav" autostart=false width=0 height=0 name="sound1"
enablejavascript="true">
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
Find out what you should include to make the best professional email signature for your organization.
Viewers will learn the basics of creating custom device Racks in Ableton Live. Place instrument(s) and effects onto a track, and select them all by holding the Shift key and clicking on the device title bars: Group them by typing Command-G (Ctrl-G…
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question