0
I have a slideshow, I’m trying to get every div of id content to play the music in question within the div content. I was thinking of using an if ($("#Content1"). is(":Visible") {$('#1.mp3'). play();} But I searched on the net how to do this bad I found nothing similar :( Thank you very much staff. Stackoverflow SHOOWWW! : ) NOTE: Code below is playing the 2 songs together.
<div class="slide">
<div class="content-switcher" id="Content1">
<img src="imagem"/>
<span class="pe-7s-volume">
<audio id="playTune" autoplay>
<source src="2.mp3">
</audio>
</span>
</div>
</div>
<div class="content-switcher" id="Content2">
<img src="img/2botao.jpg" style="height:100%;" />
<span class="pe-7s-volume">
<audio id="playTune" autoplay>
<source src="1.mp3">
</audio>
</span>
</div>
</div>
This excerpt of code saved the weekend I had a headache trying to find a solution. Thank you friend Marco. :)
– Joao Marcos