Check out the 'inline layers' section of this tutorial:

http://dynapi.sourceforge.net/doccenter/index.php?DynLayer%20Advanced

Basically you just have to reference the inline layer through the
DynAPI.document object, which maintains a reference to all the inline layers
in a page.

DynAPI.document.all["myLayerId"]

- Abre

-----Original Message-----
From: Michael Kraus [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 30, 2001 11:50 PM
To: DynApi
Subject: [Dynapi-Help] Obtaining a reference to div's coded in HTML.


G'day all...

(Forgive me if this is silly, I'm a DynApi newbie.)

Is it possible to use a DynLayer reference to an already existing (ie
written in HTML) div such that the existing div may be manipulated with the
DynLayer methods and properties?

Something like...

<HTML>
<HEAD><TITLE>Whatever...</TITLE>
<!-- Necessary includes here -->
<Script language="JavaScript">
myLayer = new DynLayer("ExistingDiv")
</Script>
</HEAD>
<BODY>
<DIV id="ExistingDiv">Whatever div stuff here...</DIV>
<Script language="JavaScript">
// Whatever manipulation code here... eg
MyLayer.moveTo(50,10)
</Script>
</BODY>
</HTML>

Thanks heaps...!

Michael.  (Trying to hit the ground running with DynApi)... :)


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

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

Reply via email to