0 Replies Latest reply on Jul 23, 2015 7:36 PM by Miguel Valenzuela

    Hi I'm trying to load a Vimeo video in a popup window in edge animate using colorbox, can anyone help with what code I would place on a button in Edge to load the popup window?

    Miguel Valenzuela

      I have placed relevant code in the <head> and <script> html sections, and the .js files in the same directory as the .html

       

      I tried placing this code on the button - with ".vimeo" being the colorbox event element to be called but no luck - any help on how to do this would be much appreciated (or a better way to do it)

       

       

       

      jQuery(document).ready(function($) {

          jQuery('.vimeo').live('click', function(){

              newwindow=window.open($(this).attr('http://player.vimeo.com/video/2285902'),'height=200,width=150');

              if (window.focus) {newwindow.focus()}

              return false;

          });

      });

       

       

      cheers

      m