I am not sure why but the following small code doesn't work for Netscape 
4.79 but do work correclty for IE5.5 and Netscape 6.2. Does anyone know why 
all the layers are not defined?



<script language="Javascript" src="dhtmllib/dynapi.js"></script>
<script language="Javascript">
        DynAPI.setLibraryPath('dhtmllib');
        DynAPI.include('dynapi.api.*');
        DynAPI.include('dynapi.ext.inline.js')
</script>
<SCRIPT LANGUAGE=JavaScript>
    DynAPI.onLoad = function()
    {
        layer1 = this.document.getAll()['layer1Div']
        layer2 = this.document.getAll()['layer2Div']
        alert(layer1 +"__"+ layer2)

        sublayer1 = this.document.getAll()['sublayer1Div']
        sublayer2 = this.document.getAll()['sublayer2Div']
        alert(sublayer1 +"__"+ sublayer2)
    }
</SCRIPT></head><BODY>


<div id='layer1Div' style="position:absolute;">
        <div id='sublayer1Div' style="position:absolute;"></div>
</div>
<div id='layer2Div' style="position:absolute;">
        <div id='sublayer2Div' style="position:absolute;"></div>
</div>


</BODY>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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

Reply via email to