Forum Discussion
anithaduraisamy
8 years agoCommunity Member
Mute audio using javascript
Hi guys,
i want to create my own mute/unmute audio button using articulate.i done this but i have a small problem.
problem:
i have three to four audio within a single slide.
when i click mut...
anithaduraisamy
8 years agoCommunity Member
my javascript coding is,
var a = document.getElementsByTagName('audio');
for(var i=0; i < a.length; i++)
{
if (a[i].volume>0)
{
a[i].volume=0;
}
else
{
a[i].volume=1;
}
}
can you pls see this video....
if you know the answer help me........
thanks
Anitha