Viewing 31 replies (of 31 total)
  • You might not have to hack the pugin. You could try a little altered version of your code placed in a simple text widget in your footer for example…

    <script type="text/javascript">
    jQuery(document).ready(function($) {
    var mySRC ="";
    $("h2 a").fancybox({
    'padding': 0,
    // other API options etc
    'onComplete': function() {
    mySRC = $('#video_one_lightbox iframe').attr('src');
    },
    
    'onClosed': function() {
    $('#video_one_lightbox iframe').attr('src',mySRC);
    
    }
    });
    }); // ready
    </script>

    Notice that I wrapped it in the usual script tags and changed the first line a bit to comply with jQuery in no-conflict mode. Otherwise I left the code as is since I have no idea what you want to achieve with it ??

    Well, actually I suspect you want to show an iframe as inline content which has the downside of not showing a second time after closing. Correct? However, there possibly is another way to approach this. What if you just link to the iframe source (“src”) URL with class="fancybox-iframe"?

Viewing 31 replies (of 31 total)
  • The topic ‘[Plugin: Easy FancyBox] Easy Fancy Box and HTML5 Video’ is closed to new replies.