Solved

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

Posted on 2008-06-19
2
381 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
Comment Utility
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
Comment Utility
and the important bit

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

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Great sound, comfort and fit, excellent build quality, versatility, compatibility. These are just some of the many reasons for choosing a headset from Sennheiser.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now