Link to home
Start Free TrialLog in
Avatar of Neil2526
Neil2526

asked on

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

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?
Avatar of bluefezteam
bluefezteam

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>
ASKER CERTIFIED SOLUTION
Avatar of bluefezteam
bluefezteam

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial