0

ページの読み込み時にポップアップするように Fancybox を実装しました — ただし、ユーザーが Fancybox をクリックして Web サイトに戻ると、曲の再生が再び開始されます。これを引き起こす原因についてのアイデアはありますか?

リンク: People Like Us ウェブサイト

<!-- 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'
        }
    });
4

1 に答える 1