This code works fine in Chrome But it doesn't produce audio in Firefox. I'm testing from file:// and not http://. I placed an alert in the playSound function and passed it the audio parameter. It returned the audio div id for all buttons like it should. I'm stumped at this point and any suggestions would be great.
<li id="siren" class="app_button">
<img src="img/siren.png" alt=""
name="siren_pressed" width="102" height="102"
onmousedown="press('siren_pressed')"
onmouseup="release('siren_pressed'), playSound('siren_audio')">
<audio id="siren_audio">
<source src="audio/siren.ogg" type="audio/ogg">
<source src="audio/siren.mp3" type="audio/mpeg">
</audio>
</li>
/* Javascript is in a seperate folder */
function playSound(audio)
{
var sound = document.getElementById(audio);
sound.play();
}