Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

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?

$
0
0

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


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>