PDA

View Full Version : offsetting layers outside of window


dga
05-21-2003, 08:06 PM
hiya

i had posted in a different forum before realizing this is a really a javascript question.

is it possible to position a layer to appear outside of the current browser window using javascript? i have yet to be able to do this, or find out if it can be done.

i've tried to learn by example from a (right click) contextmenu that does do this. thanks.

dga

Mr J
05-21-2003, 08:14 PM
Giving the position a negative number will position beyond the left or top.

Notice you cannot see the top border, this is because it is offscreen


<div style="position:absolute; left:100; top:-100; width:300;height:200;border:1 solid blue">

dga
05-21-2003, 08:28 PM
i understand your reply and have used negative numbers on various occassions, but what i'm after is the layer will be visible outside of the browser window.

dga

Roy Sinclair
05-21-2003, 09:25 PM
Originally posted by dga
i understand your reply and have used negative numbers on various occassions, but what i'm after is the layer will be visible outside of the browser window.

dga

You can't do that. The edge of the window is the limit, you cannot display any content outside of the window unless you open a whole new window to contain it.

Mr J
05-21-2003, 11:24 PM
Exactly
:thumbsup:

realisis
05-22-2003, 12:08 PM
er, IE 5.5+ allows this via:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/popup.asp

Weirdan
05-22-2003, 12:27 PM
Originally posted by realisis
er, IE 5.5+ allows this via:

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/popup.asp


from MSDN
popup Object

A special type of overlapped window typically used for dialog boxes, message boxes, and other temporary windows that appear separate from an application's main window.


Popup is a window by itself, didn't you know that? ;)

Mr J
05-22-2003, 03:35 PM
Well now .... do we hang our heads is shame :eek:

This may be worth looking into :o