Hello everyone,
Right now I’m using a script on my index page to open up a pop-up.
It works great, but I was wondering how to make the pop up centered in the screen when it launches. Right now it pops up at the left side of my screen.
Heres the script:
on (release) {
getURL(“javascript:NewWindow=window.open(‘http://www.olddirtydermot.com/popup.html’,‘olddirtydermot’,‘width=1130,height=1300,top=0,left=0,toolbar=no,scrollbars=yes,resizable=no,menubar=no,status=no,directories=no,location=no’);NewWindow.focus();screen_height=window.screen.availHeight;screen_width=window.screen.availWidth;left_point=parseInt(screen_width/2)-(950/2);top_point=parseInt(screen_height/2)-(514/2);setTimeout('NewWindow.moveTo(left_point,top_point)’,100);void(0);”);
}
Thanks for your time and help.