Fancybox Video continues to play when closed
Just implemented Fancybox to pop up on the page load — however, when the
user clicks out of the fancybox back to the website, the song will begin
to play again. Any ideas on what could cause this?
LINK: People Like Us Website
<!-- FANCYBOX POPUP -->
<a class="popupLink" href="#popup"></a>
<div id="popup">
<iframe width="853" height="480"
src="http://www.youtube.com/embed/Qw7k_erTgow?autoplay=1"
frameborder="0" allowfullscreen></iframe>
</div>
<!-- .popup -->
<script type="text/javascript">
$(document).ready(function() {
$(".popupLink").fancybox();
window.setTimeout('$(".popupLink").trigger("click")', 100);
});
</script>
<script type="text/javascript">
$("a.more").click(function() {
$.fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'title' : this.title,
'width' : 680,
'height' : 495,
'href' : this.href.replace(new RegExp("watch\\?v=", "i"),
'v/'),
'type' : 'swf',
'swf' : {
'wmode' : 'transparent',
'allowfullscreen' : 'true'
}
});
No comments:
Post a Comment