当某个事件发生时,我希望我的网站向用户播放简短的通知声音.
声音应该不自动启动(瞬间)当网站被打开.相反,它应该通过JavaScript按需播放(当某个事件发生时).
重要的是,这也适用于旧浏览器(IE6等).
所以,基本上有两个问题:
<embed>
<object>
<audio>
html javascript audio notifications html5-audio
audio ×1
html ×1
html5-audio ×1
javascript ×1
notifications ×1