Click to See Complete Forum and Search --> : function Defining_coordinates for overlapping windows


orhan
08-22-2003, 05:55 AM
Can someone help me how to make two windows using coordinates get them overlapped. I could not find anything related to my problem. All examples are related pop-up windows. I am very hopeless. Thanks.

Khalid Ali
08-22-2003, 08:12 AM
Take a look here its a popup window script that opens a window in the center of the screen.You can use this approach with tsame number for as many windows and all of those will overlapp each other.

Or you can open window and then use

windowHandle.moveTo(X,Y)

where x and y are the co-ordinates where you want window to be on the screen

orhan
08-22-2003, 05:54 PM
Thanks for your help Khalid,

My problem is I want to do that declaring variables for each window like
var left1, top1, right1, bottom1, left2, top2, right2, bottom2;
then I will create a function
function define_coordinates()
For defining variables I will prompt the user to choose all variables like
left1=prompt("Please enter the pixel of the left side of the screen","Enter here");
and so on
and I will create a function like determine_overlap() displaying overlap message.

overlapping condition will be determined using logical expressions.
I think it is not complicated, I am new in javascript I can't figure it out.
Thanks for your helps