to keep things simple, you could take the Glen Deas example, relative
positioning, and change the inline div to this:
<div id="layer1" style="position:relative; overflow: hidden;">

Now if you do
layer1.setSize(1,1)
the rest of the text moves up - BUT, guess which browser doesn't support
this...

So the hard way would be:
If your inline div doesn't contain any text, you can make it small, and the
rest of the page follows, but, a div always includes a linebreak, so the
minimum size is one line height.
you would use the inline div to get it's x,y coords, and position another
div showing the text at that place, you can increase the inline div's height
to move the rest of the page down.
By changing the div to a span, you get around the minimum one line height
problem, but you have to edit inline.js to look for spans instead of divs.

In answer to the difference between cloning you asked offline, the cloned
one uses the inline div to hold the same text as is inline, and displays
itself over the other text, it doesn't move the rest of the page , and
cannot be changed in size etc:
<div id="layer1" style="position:absolute; visibility:hidden">This is a
test.</div>This is a test blah blah


Richard.

----- Original Message -----
From: "Jonah" <[EMAIL PROTECTED]>
To: "Dynapi-Help" <[EMAIL PROTECTED]>
Sent: 11 June, 2001 20:44
Subject: [Dynapi-Help] relatively positioned layers--creation and deletion


> I am looking for a way to make relatively positioned layers act as though
> they were being created and deleted--that is, actually dissappear and
> reappear from the flow of the page, but can find only two unsatisfactory
> options.  Setting the visibility on and off makes the layer appear and
> reappear, but leaves unwanted blank space when the layer is invisible.
> Actually deleting the layer gets rid of the blank space, but also (as far
as
> I can tell) deletes the layer from memory, so that I can't get it back.
Is
> there a way to get the effect of a deletion and then bring a layer back
when
> it's relatively positioned?
>
> Thanks,
> Jonah
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to