Monday, 15 March 2010

javascript - HTML Video mute button -



javascript - HTML Video mute button -

i have tried create function in javascript mute html video, , alter icon below mute icon have downloaded. need help. javascript has able work along side jquery well

the question vague, i'm guessing reply question. if using video tags in html

<video width="320" height="240" controls muted> <source src="x" type="video/x"> <source src="x" type="x"> </video>

for java script

<video id="myvideo" width="x" height="x" controls> .... </video> <button onclick="enablemute()" type="button">mute sound</button> <script> var vid = document.getelementbyid("myvideo"); function enablemute() { vid.muted = true; } </script>

as sec questions, don't quite understand it, please elaborate.

javascript jquery html html5-video

No comments:

Post a Comment