RE: FN-FORUM Pop Ups with Flash (Page attached)
date posted 14th May 2001 10:22
This is a multi-part message in MIME format.
------=_NextPart_000_0002_01C0DC5F.D7A9B0C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi Pete,
Try the page attached, I have used this script for a variety of links.
Regards
Steve
e: [EMAIL REMOVED]
w: www.ez-zone.co.uk
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] Behalf Of Peter McCormack
Sent: 14 May 2001 08:41
To: [EMAIL REMOVED]
Subject: FN-FORUM Pop Ups with Flash
Can anyone tell me how to launch a pop up HTML window in flash which has a
set width and height and now toolbars.
Thanks
Pete
============================================================
* Free listing for freelancers
* Free to advertise jobs
* Free jobs distribution service
* Free database of 1000 freelancers
Freelancers and Freelance Jobs
http://www.freelancers.net
To post to the Forum:
[EMAIL REMOVED]
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
To subscribe to the digest for this list or for further information please
visit:
http://www.freelancers.net/forum.html
------=_NextPart_000_0002_01C0DC5F.D7A9B0C0
Content-Type: text/html;
name="popup-window-scripts.htm"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="popup-window-scripts.htm"
POPUP WINDOW SCRIPTS
usage : POPUP('URL','NAME','SIZE','POSN','FEATURES','HANDLE');
URL : Popup URL - specify URL or 'B' for blank page
NAME : Name of Window - like frame names
SIZE : Specify Size WxH pixels (eg: '400x300') or 'R' for Random
POSN : Specify Coordinates XxY or R for Random, or C to Center (only if =
size specified)
FEAT : Window features (eg 'toolbar,status') - only list ones you DO =
want
HAND : Window Handle - used for JavaScripting if required
If no parameter, or '' or 'D' is passed to function, the default will be =
used
TEST LINKS
POPUP('B')
(BLANK PAGE specified, everything else defaults)
POPUP('ga01.htm','D',=
'400x300')
(Size specified, default SIZE & POSN)
POPUP('ga01.htm','PopNa=
me','','TL')
(default SIZE, TopLeft POSN)
POPUP('ga01.htm','PopNam=
e','','R')
(default SIZE, RANDOM POSN)
POPUP('ga01=
.htm','PopName','380x380','600x100')
(SIZE & POSN SPECIFIED)
P=
OPUP('ga01.htm','PopName','600x400','C','toolbar')
(SIZE & TOOLBAR SPECIFIED, Center POSN)
TO GET STARTED
You need to add this line in the HEAD of the page :
<SCRIPT Language=3D"JavaScript">
function POPUP(U,N,S,P,F,H) {
var // SET YOUR **DEFAULT** SETTINGS HERE
URL =3D "http://www.yahoo.com", // SPECIFY URL, or B for blank =
page
NAME =3D "PopUpWindow", // Window Name (if use same twice, URL =
will load in same window
SIZE =3D "200x100", // R=3DRandom, OR WxH pixels (eg: 200x300)
POSN =3D "C", // R=3DRandom, C=3DCenter (only if size =
specified), TL=3DTopLeft OR XxY pixels
FEAT =3D "", // ONLY LIST ONES THAT YOU WANT !
HAND =3D "POP"; // FILEHANDLE, IF YA KNOW WHAT THAT MEANS
// usage : POPUP('URL','NAME','SIZE','POSN','FEATURES','HANDLE');
// All parameters passed to the function are optional (if none, will use =
default)
// - but can ONLY removed in this order : HAND -> FEAT -> POSN =
-> SIZE -> NAME -> URL
// - eg: you can omit HANDLE completely, but can't specify HANDLE yet =
omit POSN
var =
w,h,x,y,SI=3D'',PO=3D'',Sw,Sh;if(window.screen){Sw=3Dscreen.availWidth;Sh=
=3Dscreen.availHeight;}else{Sw=3D0;}
if(((!U)||(U=3D=3D'')||(U=3D=3D'D'))){U=3DURL;} =
if(U=3D=3D'B'){U=3D'about:blank';}
if(((!N)||(N=3D=3D'')||(N=3D=3D'D'))){N=3DNAME;} =
if(((!S)||(S=3D=3D'')||(S=3D=3D'D'))){S=3DSIZE;}
if(((!P)||(P=3D=3D'')||(P=3D=3D'D'))){P=3DPOSN;} =
if(((!F)||(F=3D=3D'')||(F=3D=3D'D'))){F=3DFEAT;}
if(((!H)||(H=3D=3D'')||(H=3D=3D'D'))){H=3DHAND;} S=3DS.toUpperCase(); =
P=3DP.toUpperCase();
if(S!=3D'R'){S=3DS.toUpperCase();w=3DS.split('X')[0];h=3DS.split('X')[1];=
SI=3D'width=3D'+w+',height=3D'+h;}
if(F){F=3D','+F;} if(P!=3D'R'){if(P=3D=3D'TL'){x=3D0;y=3D0;}else =
if(P=3D=3D'C'){if((SI)&&(Sw!=3D0)){x=3D(Sw-w)/2;y=3D(Sh-h)/2;}
else =
{PO=3D'';}}else{P=3DP.toUpperCase();x=3DP.split('X')[0];y=3DP.split('X')[=
1];}
PO=3D',screenX=3D'+x+',left=3D'+x+',top=3D'+y+',screenY=3D'+y;}if(Sw=3D=3D=
0){PO=3D'';}
var DOIT=3D'var =
H=3Dwindow'+'.open("'+U+'","'+N+'","'+SI+PO+F+'&=
quot;)'; eval(DOIT);
}
</SCRIPT>
------=_NextPart_000_0002_01C0DC5F.D7A9B0C0--