0 Replies Latest reply on Feb 20, 2014 8:32 AM by Matbathome

    Fancybox with Vimeo?

    Matbathome Level 1

      Anyone get fancybox with Video working?

       

      I have this on my stage:

         $('html, body').css({

                    "background": "url(images/background_cap.png) repeat-x top left"

             });

      $("#Stage").css("margin","auto")

                            $(‘<script type=”text/javascript” src=”js/fancybox/jquery.fancybox.js?v=2.1.4″></script>’).appendTo(“#Stage”);

      $(‘<link rel=”stylesheet” type=”text/css” href=”js/fancybox/jquery.fancybox.css?v=2.1.4″ media=”screen” />’).appendTo(“#Stage”);

       

      And on my button with a click action I put:

      $.fancybox.open([

      {

      type: 'iframe',

      href : 'http://player.vimeo.com/video/69182633?autoplay=1',

      title : '600 x 600'

      },

      {

      href : 'img/800800.jpg',

      title : '800 x 800'

      }

      ], {

      padding : 0

      });