Простите за апп...
Magneto твой пример не работает в сафари... В чем может быть проблема? Использую аналогичный скрипт у себя на сайте - сафари отказывается "петь".
Вот скрипт:
function playsound(sound, mute){
var myfile;
var ext = '.ogg';
if (mute == 1){
var ua = navigator.userAgent;
if (ua.search(/MSIE/) > 0){ext = '.mp3'}
if (ua.search(/Chrome/) > 0){ext = '.mp3'}
if (ua.search(/Safari/) > 0){ext = '.mp3';}
if (sound == 1){myfile = 'sound/msg'+ext;}
if (sound == 2){myfile = 'sound/turn'+ext;}
if (sound == 3){myfile = 'sound/expand'+ext;}
if (sound == 4){myfile = 'sound/error'+ext;}
var audio = new Audio();
audio.src = myfile;
audio.load();
audio.play();
}
}