Markus Ernst wrote:
So what file format and embedding syntax do you suggest for playing sound in
a compatible and standards compliant way?
The following does the trick for playing mp3 files, I used it a lot but
in this case it has got nothing to do with JavaScript. This will work in
multiple browsers though I haven't tested it thoroughly, IE 5.5, IE 6.x,
Moz 1.x, Opera 6.x and Opera 7.x should work though.
Also this doesn't solve the problem in the first place, this won't cause
the file being played repeatedly.
<object id="music" data="music.mp3" type="audio/mpeg" style="heigth:0px;
width:0px"></object>