Video popup in new window using jQuery


jQuery(document).ready(function($) {
jQuery(‘.video-banner-inner a’).live(‘click’, function(){
jQuery(“#cboxOverlay”).css(“opacity”,0);
jQuery(“.video-banner-popup”).hide();
var w = ‘900’;
var h = ‘500’;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);
newwindow=window.open($(this).attr(‘href’),”,’directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,height=’+h+’,width=’+w+’left’+left+’top’+top);
if (window.focus) {newwindow.focus()}
return false;

});
});

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s