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

Reply via email to