Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Javascript popup window centered?
From: Matt Coyne
Date: Fri, 15 Sep 2000 10:07:16 +0100

pop this code in the BODY tag of the HTML page you want to centre:

onLoad="javascript:window.moveTo(Math.round((screen.availWidth-window.outerW
idth)/2),Math.round((screen.availHeight-window.outerHeight)/2))"

The pop-up window will centre on the screen [whatever size] when loaded. If
you need the code for the pop-up see Moock's tutorial [moock.org] or use
DreamWeaver. Only thing with DW is that it tends to put onMouseOver in the
Jac=vascript of the pop-up rather than onClick, which I just go in and edit
manually.

HTH
m@

: t h r e e z e r o :



> From: owneratchinwag [dot] com (flasher-digest)
> Reply-To: flasheratchinwag [dot] com
> Date: Fri, 15 Sep 2000 01:40:33 +0100
> To: flasher-digestatchinwag [dot] com
> Subject: flasher-digest V1 #3777
>
> Date: Thu, 14 Sep 2000 16:36:42 -0400
> From: Mathew Smith <msmith2atsc [dot] rr [dot] com>
> Subject: FLASH: Javascript popup window centered?
>
> Is there a javascript that will create a fixed-size popup window,
> centered on the screen? Any help would be greatly appreciated.. Thank
> you.
> - --
> - --------------------------------------------
> Mathew Smith
> Eltrax Systems, Inc.
> msmith2atsc [dot] rr [dot] com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]