Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-04-2001, 03:29 AM   #1
lepetitemonkey
Registered User
 
Join Date: Jul 2001
Posts: 2
Default

Hello,

is it possible to make a pop up window show up in certain x and y coordinates on your screen? if so, can anyone tell me how?

thanks

jf
lepetitemonkey is offline   Reply With Quote
Old 07-04-2001, 08:06 PM   #2
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 798
Send a message via ICQ to Strok
Default

<html>
<head>
<title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript" type="text/Javascript">
<!--
function LocatePopUp() {
var iMyWidth;
var iMyHeight;
//gets top and left positions based on user's resolution so hint window is centered.
iMyWidth = (window.screen.width/2) - (150+5); //half the screen width minus half the new window width (plus 5 pixel borders).
iMyHeight = (window.screen.height/2) - (150 + 25); //half the screen height minus half the new window height (plus title and status bars).
var win2 = window.open("http://www.actionscripts.org/","windowname","status=no,height=300,width=300,res izable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
win2.focus();
}
//-->
</script>

</head>

<body bgcolor="#FFFFFF" text="#000000" onload="LocatePopUp()">

</body>
</html>
__________________
My photography: http://strok.photosight.com
Strok is offline   Reply With Quote
Old 07-05-2001, 01:17 AM   #3
Jesse
ActionScript.org Founder
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: New York
Posts: 8,736
Default

please also remember to search the forums as this topic has been coverred often
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tutorial for Launching a Centered Pop-Up Window vazbo ActionScript 1.0 (and below) 9 01-01-2010 11:01 PM
Pop up window - make links load in '_parent' (help!) humbleches ActionScript 1.0 (and below) 2 02-03-2005 12:02 AM
Pop up window from another pop up window ecwashere7 ActionScript 1.0 (and below) 1 01-09-2002 09:37 PM
Close/Open new pop up window bcmuth ActionScript 1.0 (and below) 3 06-25-2001 02:16 AM
Location of browser pop up window KahunaGeezer ActionScript 1.0 (and below) 2 04-11-2001 03:49 PM


All times are GMT. The time now is 02:11 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.