Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

BBS: Re: Layers not in same position after resizing window - July 07, 1998 at 20:00:32

You are here: irt.org | BBS | Re: Layers not in same position after resizing window [This BBS is closed]

Posted by Enrique Reyes on July 07, 1998 at 20:00:32:

In Reply to: Layers not in same position after resizing window posted by vanessa beca on July 07, 1998 at 18:44:27:

A page with layers lose the layout when you resize the window. you must reload the document when such a thing happens, and because there is a bug involved we need some workaround. The most used code is as follow:

<SCRIPT LANGUAGE="JavaScript1.2">
NS4 = (document.layers);

function reLoad (){ window.location.reload () }

function setResize () {
setTimeout ("window.onresize=reLoad",250);
}

if (NS4) window.onload = setResize;

</SCRIPT>

Put this script in the head section of your document and see if it functions. Of course, if you have a slideshow or something like that, it start over again.

Enrique Reyes


: I did the code in the JS article using the document.layers['layername'].
: pageX = window.pageXOffset + 10 but the layer did not stay in the
: same position when I resized my window.

: Could someone help me? I need to be able to turn layers on and
: off without worring about the user maximizing their window.

: Thanks!!!


Follow-ups:

You are here: irt.org | BBS | Re: Layers not in same position after resizing window [This BBS is closed]

©2018 Martin Webb