垃圾邮件声音

时间:2018-04-11 18:21:43

标签: javascript html audio

有没有办法从一开始制作声音垃圾邮件?到目前为止,我有这个:

<audio controls src="https://www.dropbox.com/s/a6wqamnhhmprvwu/OOF.wav?dl=1"  id="audio"></audio>
<script>
var one;setInterval(two,1);
function two{
var audio = document.getElementById("audio");
audio.pause();
audio.currentTime = 0;
audio.play();

}
</script>

1 个答案:

答案 0 :(得分:1)

将间隔增加到1000毫秒

&#13;
&#13;
<audio controls src="https://www.dropbox.com/s/a6wqamnhhmprvwu/OOF.wav?dl=1"  id="audio"></audio>
<script>
setInterval(two, 1000);    
function two() {
  var audio = document.getElementById("audio");
  audio.pause();
  audio.currentTime = 0;
  audio.play();
}
</script>
&#13;
&#13;
&#13;