Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

RE: FN-FORUM: Position of pup-up

date posted 9th March 2003 09:50

Sure,

Good script I have.

function openWindow(theURL,winName,features, myWidth, myHeight, =
isCenter) {=20
if(window.screen)if(isCenter)if(isCenter=3D=3D"true"){
var myLeft =3D (screen.width-myWidth)/2;
var myTop =3D (screen.height-myHeight)/2;
features+=3D(features!=3D'')?',':'';
features+=3D',left=3D'+myLeft+',top=3D'+myTop;
}
=20
window.open(theURL,winName,features+((features!=3D'')?',':'')+'width=3D'+=
myWidth
+',height=3D'+myHeight)=20
return
}

Put the above in the header.

onClick=3D"openWindow(this.href,'_NewWin','scrollbars=3Dyes,resizable=3Dn=
o,status=3D
no','450','300','true');return false"

And the above on any link and it will open it in a popup. You can =
probably
work out most of the settings in the onClick but the true var sets if it
should be centred or not.

Regards=20
=20
Sam Morgan=20
=20
WIREDEYES=20
t : 0845 644 6568 (Local Rate)=20
f : 0871 433 2278 (10p per min)=20
e : [EMAIL REMOVED]
w : http://www.wiredeyes.com=20
----=20
umop ap!sdn w,! aw dlaH=20


> -----Original Message-----
> From: [EMAIL REMOVED]
> [EMAIL REMOVED] On Behalf Of Kerry K-C
> Sent: 09 March 2003 08:01
> To: FN-FORUM / [EMAIL REMOVED]
> Subject: FN-FORUM: Position of pup-up
>=20
>=20
> I seem to recall this question arising before so I'm hoping=20
> someone out
> there can help.
>=20
> I have 'help' pop-ups opening for a site and I'd like to be=20
> able to have
> them open in a specific position by default (e.g.=20
> centre-screen). Can this
> be done?=20
>=20
> TIA
> Kerry
>=20
>=20
>=20
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>



Messages by Day
March 31st 2003
March 30th 2003
March 29th 2003
March 28th 2003
March 27th 2003
March 26th 2003
March 25th 2003
March 24th 2003
March 23rd 2003
March 22nd 2003
March 21st 2003
March 20th 2003
March 19th 2003
March 18th 2003
March 17th 2003
March 16th 2003
March 15th 2003
March 14th 2003
March 13th 2003
March 12th 2003
March 11th 2003
March 10th 2003
March 9th 2003
March 8th 2003
March 7th 2003
March 6th 2003
March 5th 2003
March 4th 2003
March 3rd 2003
March 2nd 2003
March 1st 2003


Messages by Month
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000