If you want, you can just access the inline layers as dynlayers.  If
you insert dynapi.ext.inline.js, then onload you can automatically
acess them with DynAPI.document.all["lyr"] and they are actually
dynlayers.  Or if you want to copy them multiple times, then you have
to create a copy object that copies all of the properties of the
dynlayer to a new object.  I believe someone wrote something like this
a while back, but I'm not sure where it is or if it still works.

-- 
// Robert Rainwater

On 12/11/2000, 11:02:36 PM EST, Jorge wrote about "[Dynapi-Help] Making dynLayer 
copies":

> Hi every body,
> I am triying to make my first widget, it is a menu box, with two configuration 
>variables, one for content an other for title. I am making a function to create them 
>supplying this two, as arguments.
> This boxes are themable, and are built of tree parts: The title holder, the content 
>holder and the bottom images holder, every element us a 3 cell table, so this give 
>you freedom to change look
> just swaping images.
> Because the title and bottom elements wont change their height I would like to 
>loadthem as inline layers, an then just make copies to the dynlayer function that 
>creates them, so I dont have to 
> calculate the size every time one is created an to wait the images to load.
> I am also working on a DynApi extension that would mimic relative positioning, so 
>when a dynLayer is added, it will follow the flow as if it were another element 
>(table) on a normal document (which
> I think can be very usefull). I am not a javascript coder, I have a php background, 
>so any help on this will be really apreciated.

> Sorry for the big post,
> Best Regards,
> Jorge C.


>      title  
>      Contents 
>       Contents 


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

Reply via email to