使用javascript在客户端播放声音文件

使用javascript在客户端播放声音文件

问题描述:

大家好,
如果存在某种条件,我想每隔1分钟在客户端后台播放一个声音文件.
有谁知道该怎么做.

谢谢

Hi everyone,
I want to play a sound file on client side in background after every 1 minute if certain condition is there.
Does anyone know how to do this.

Thanks

一个简单的 ^ ]给了我这些:
从JavaScript播放声音 [如何在单击或鼠标悬停时播放声音 [教程-使用setInterval和setTimeout [ JavaScript计时器 [
A simple Google search[^] gave me these:
Playing Sound from JavaScript [^]
How to Play a Sound on Click or on MouseOver[^] and many more.

Now, comes the interval thing. Have a look at the Javascript setTimeout function:
Tutorial - Using setInterval and setTimeout[^]
Javascript Timers[^]