|
|
Script Question
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 on 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,m enubar=no,status=no,directories=no,location=no');N ewWindow.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.
I'm using Flash MX 2004- 7.2
Ultrashock Forums > Flash > Flash Newbie
Posted on: 2005-04-08
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
|
|
|