?
Solved

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

Posted on 2008-06-19
2
Medium Priority
?
396 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 2000 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

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

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

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
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 learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
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)
Suggested Courses

752 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