PPV Window Resize Script

Do any of you use a resizing script for your ppv or do you just make the links open in a new window?

I’ve tested this script and it works great for firefox/chrome, but IE blocks the activex upon loading.

<---ADD TO HEAD--->
<script type="text/javascript" src=""></script>

<script type="text/javascript">
$("a").click(function() {

User Comment:
I don’t use it anymore since LI/TV always disapproved my landers…I use some more catchy audio instead 😉

User Comment:
I resize pops anywhere other than TV since I don’t want to lose that account. The biggest issue I had with resizing is that I didn’t always want to pop a full screen because that triggers an instant close by a lot of users, but I wanted the page a bit bigger and to be able to control exactly what the user saw. Problem is, with so many toolbars and whatnot installed, it’s a crapshoot because the viewing window is going to be different for a lot of users.

Soooo…. here is a sexy little piece that will let you resize to the viewport dimensions, so regardless of what crap they have taking up their toolbars, you control their viewable area and where on the screen it pops:

<script language="javascript">
function GetInnerSize () {
var x,y;
if (self.innerHeight) // all except Explorer
x = self.innerWidth;
y = self.innerHeight;
else if (document.documentElement && document.documentElement.clientHeight)
// Explorer 6 Strict Mode
x = document.documentElement.clientWidth;
y = document.documentElement.clientHeight;
else if (document.body) // other Explorers
x = document.body.clientWidth;
y = document.body.clientHeight;
return [x,y];

function ResizeToInner (w, h, x, y) {

if (x==undefined) x = window.screenLeft  window.screenX;
if (y==undefined) y = window.screenTop  window.screenY;
var inner = GetInnerSize();
var ox = screen.availWidth-inner[0];
var oy = screen.availHeight-inner[1];
window.resizeTo(w+ox, h+oy);


then in your body tag, just put onload="ResizeToInner([width],[height],[x-position],[y-position])"

User Comment:
most of the ppv network, don’t allow you to resize windows

User Comment:
Nice script, thanks for that.

As for networks not allowing resizing, I wasn’t talking about resizing the pop window. I was talking about once the user clicks a link IN the pop window, resizing that instead of opening it in a new window.

The Article Published IN 03-31-2011 12:53 PM

Share To More ()