Hi,

Does anyone know why the Test() function is not called in the following
under NS4.5/4.76 :

function Test( rImage )
{
        alert( "Test : " + rImage.src );
}

DynAPI.onLoad=function() 
{

        var rLayer1 = new DynLayer( null, 0, 0, 100, 100, '#c0c0c0' );
        var rLayer2 = new DynLayer( null, 110, 110, 100, 100, '#000000' );
        DynAPI.document.addChild( rLayer1 );
        DynAPI.document.addChild( rLayer2 );
        rLayer1.setHTML( "<IMG src='pix/DecoratorPix/loading2.gif'
width='100' height='100' onload='Test(this)'>" );
}

If I comment out the line that adds layer2 to the document the function is
called.

Thanks

Mike..

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

Reply via email to