所以播放的音频基本上是非常响亮的,我怎样才能改变从阵列中播放的歌曲的音量?
<script type="text/javascript">
var sound = new Array();
sound[0]= "Attack.mp3"
sound[1]= "KOTD.mp3"
sound[2]= "Revenge.mp3"
sound[3]= "Attack.mp3"
sound[4]= "KOTD.mp3"
sound[5]= "Revenge.mp3"
var randomsound = Math.floor(Math.random() * 6);
document.write ('<audio id="sound" loop autoplay preload><source src= "' + sound[randomsound] + '" hidden=true type="audio/mpeg" autostart=true loop=true>')
</script>
我尝试过使用audio.volume功能,但无济于事,有什么帮助吗?