2
Guys I’m with a code
<div class="box">
<button id="showr">Mostrar</button>
<button id="hidr">Esconder</button>
<div>
<iframe width="420" height="345" src="http://www.youtube.com/embed/oHg5SJYRHA0?autoplay=1" frameborder="0" allowfullscreen></iframe>
</div>
<script>
$("#showr").click(function() {
$("iframe").first().show("fast", function showNext() {
$(this).next("iframe").show("fast", showNext);
});
});
$("#hidr").click(function() {
$("iframe").hide(1000);
});
</script>
I wanted to know the following: when I enter the site, the video is already ready to be watched, but there is some code or some modification that I can do so that the person only sees the video when they click on mostrar
?
How and why to accept an answer?
– Guilherme Nascimento