flash and sound-on-event

No one seems capable of providing a short (xhtml) accessible 
((non-flash)) code sample* that allows a sound
to be played when the user initiates an event.

flash has provided this functionality for some years.

Many users need, and benefit from this, others prefer it, and not a few 
believe they are thus delivered to the bleading edge.

A few of you will see the many evils that advertisers will thereby 
promote and use.
Frankly, without it the gap between accessible code and multimedia can 
only widen.

Jonathan Chetwynd


*The following snippet could use any particular player, what is needed is one that plays whatever player is installed.
It only plays sound-on-event for windows media player 7 on a pc, whereas mozilla 2002092708, icab 2.8 for mac and ie5.2 for mac ONLY play the autostart sound (not surprisingly.)

http://www.peepo.com/w3/ok.html

<html>
<body>

<OBJECT ID="Player"
  CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
    height="0" width="0">
  <PARAM name="URL" value="games.wav">
  <PARAM name="autoStart" value="False">
</OBJECT>

<object id="mynewSound" data="games.wav" type="audio/wav" width="" height="" > //mac ie + Moz
<param name="src" value="games.wav" /> //pc ie but does not work for pc moz
<param name="autostart" value="true">
</object>

<a onmouseover="javascript:Player.controls.play();">
<img src="tiger.png" alt="tiger" title="tiger" /></a>

</body>
</html>

Received on Tuesday, 8 October 2002 01:20:14 UTC