you need to include dynapi.ext.inline then you need to call DynAPI.document.findLayers(); to index the <div>'s. ----- Original Message ----- From: "Michael Kraus" <[EMAIL PROTECTED]> To: "DynApi" <[EMAIL PROTECTED]> Sent: Sunday, December 09, 2001 7:16 PM Subject: [Dynapi-Help] Manipulating existing div via code.
> G'day all... > > I'm having real difficulties with the code below. I can't seem to be able to > get a useable reference to the existing div. > > I'm running overtime on a project this is for, so any help would be greatly > appreciated! :) > > Thanks... > > Michael. > > <HTML> > <HEAD> > [...] > <script language="Javascript" src="dynapi/src/dynapi.js"></script> > <script language="Javascript"> > DynAPI.setLibraryPath('dynapi/src/lib/'); > DynAPI.include('dynapi.api.*'); > </script> > <script language="Javascript"> > DynAPI.onLoad=function() > { > //menuLayer2 = DynAPI.document.getAll()['menuLayer2Div']; -- doesn't work > for me. > //menuLayer2 = DynObject.all["menuLayer2Div"]; -- doesn't work for me. > menuLayer2 = DynAPI.document.getAll('menuLayer2Div'); > > menuLayer2.setVisible(false); > } > [...] > </HEAD> > <BODY> > [...] > <DIV id="menuLayer1Div" style="position: absolute"> > [...] > </DIV> > </BODY> > </HTML> > > > _______________________________________________ > 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