Video popup in new window using jQuery

jQuery(document).ready(function($) {
jQuery(‘.video-banner-inner a’).live(‘click’, function(){
var w = ‘900’;
var h = ‘500’;
var left = (screen.width/2)-(w/2);
var top = (screen.height/2)-(h/2);$(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;



Leave a Reply

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

You are commenting using your 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