Audio以及js控制

27. December 2015 HTML5 0

<audio controls autoplay >
<source src=”sound/sound.mp3″ type=”audio/mp3″>
</audio>

function sss(){
var x = document.createElement(“AUDIO”);
x.setAttribute(“src”, “sound/dog.mp3”);
x.setAttribute(“autoplay”, “autoplay”);
document.getElementById( “lijianss” ).innerHTML = “恭喜你找到一处哦,但是,不要随便碰我的鼻子!!!没被我的狂吠吓到吧^-^”;
}


Leave a Reply

Your email address will not be published. Required fields are marked *