| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Nov 2004
Posts: 4
|
hi > what do i have to add to the following code to make my popup window pop up centered in the browser window????
this is from a tutorial by Jesse 1. Insert the base Javascript code into your HTML code between the HEAD tags (<head> Script goes here </head>). Copy and paste the script below: <script language="JavaScript"> <!-- function spawnWindow(URL,Name,features) { window.open(URL,Name,features); } //--> </script> 2. Add code to your flash button in the following form: on (release) { getURL ("javascript: spawnWindow('xxx.swf','name','toolbar=no,location= yes,status=no,menubar=no,scrollbars=no,resizable=n o,width=300,height=200') thank you for any hint cris |
|
|
|
|
|
#2 |
|
Super Moderator
Join Date: Jul 2001
Location: NYC
Posts: 10,026
|
In your features area, just add this
screenX=400,screenY=400,top=400,left=400 Obviously change the numbers depending on where you need it. *edit* Note that ScreenX and ScreenY are for Netscape and Top and Left are for IE.
__________________
Color Wars™ | (kul′ər wôrs) n. - Open conflict between factions. www.theColorWars.com cota - www.chadworkman.com | http://shavedplatypus.com occupation: designer | flash developer | server-side developer (php, asp, mssql, mysql) Last edited by Cota; 11-20-2004 at 04:34 AM.. |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|