| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2001
Posts: 1
|
Could someone please tell me how to get a pop-up window to open in the center of my screen?
|
|
|
|
|
|
#2 |
|
New Member
Join Date: Jan 2001
Posts: 245
|
<SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT">
leftPos = 0 topPos = 0 if (screen){ leftPos = (screen.width-50)/2 topPos = (screen.height-150)/2 } newWindow = window.open('yourfilename.html','newWin','width=50 ,height=150,scrollbars=no,resizable=no,top='+topPo s+',left='+leftPos+',toolbars=no') </SCRIPT> </head> If you put this in the head section of your page it will launch a new window center screen. Just change the values; width - 50 height -150 to the values you have for the width and height of your movie popup. mgb [Edited by mgb on 02-11-2001 at 08:41 PM] |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rotating movieclip around its center point, but regrestion point is not at the center | advika | ActionScript 1.0 (and below) | 1 | 08-31-2006 09:33 AM |
| always center swf | ivan | Other Flash General Questions | 1 | 12-10-2005 04:04 PM |
| rotation around center point | Electric Dandy | ActionScript 2.0 | 2 | 11-24-2005 05:12 PM |
| Center Projector (how to use pattern in caption?) | BadBadNeil | Projectors and CDs | 2 | 11-17-2004 01:00 AM |
| controling the center point of a ratating nav system | SeanPaul72 | ActionScript 1.0 (and below) | 0 | 02-19-2003 02:09 AM |