html - Youtube embed issue with Twitter Bootstrap -
i building small static website on popular bootstrap framework. can't give link unfortunately have build modal box comes down on button click youtube video embedded it.
it works fine if close modal box disappears leaves youtube video hovering on else no way rid of it. on ie10.
has else tried embeddding videos bootstrap module boxes , have solution this?
thanks in advance,
jack
edit
ok, here snippet of code:
<a id="mediavideo" class="btn btn-primary btn-large" href="#" data-toggle="modal" data-target="#video">watch interview</a> <!-- modal --> <div id="video" class="modal hide fade" style="color: #2a2a2a; width: 590px;" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="mymodallabel">this modal title</h3> </div> <div class="modal-body"> <p>small paragraph describe video</p> <iframe width="560" height="315" src="http://www.youtube.com/embed/h542nlttbu0" frameborder="0" allowfullscreen></iframe> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">close window</button> <div class="btn-group"> <a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"> share video <span class="caret"></span> </a> <ul class="dropdown-menu" align="left"> <li><a href="http://www.facebook.com/sharer.php?u=http://www.google.com">facebook</a></li> <li><a href="http://twitter.com/share?text=this%20is%20the%20text&url=http://www.google.com">twitter</a></li> <li><a href="https://plus.google.com/share?url=http://www.google.co.uk">google+</a></li> </ul> </div> </div> </div> <!--end modal-->
it seems working fine me: jsfiddle. using <iframe>
option recommended when consulting youtube embed api page @ google developers.
Comments
Post a Comment