Solved

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

Posted on 2008-06-19
2
393 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
New to live audio mixing? Member of a band who wants to improve the quality of your bands sound? Need to brush up on mixing techniques? Sick of subpar mixes? This is the article for you!
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 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