in IE you can't make a variable with the same name as the dif
change the var layer1 into
var mylayer1
and try again.
(think I have to add this to the faq :)
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Krzysztof
> Kaczmarski
> Verzonden: dinsdag 13 februari 2001 16:52
> Aan: [EMAIL PROTECTED]
> Onderwerp: [Dynapi-Help] child inline layer in NS4.7
>
>
> Is this a bug ?
> Works fine for NS6, not working for NS4.7 (layer1 has no html ?)
>
> DynAPI.onLoad=function() {
>
> var layer1 = this.document.all['layer1']
> var parent = new DynLayer( null, 10,40,200,200 );
>
> parent.setBgColor( 'yellow' );
> layer1.setBgColor('#F8F8F8')
>
> parent.addChild( layer1 );
> DynAPI.document.addChild( parent );
>
> DragEvent.enableDragEvents( parent )
> }
> </script>
> </head>
>
> <body>
> <div id="layer1" style="position:absolute; color:red;">This is a
> test</div>
> </body>
> </html>
>
> As I wrote before, as long as inline layer has position:absolute
> IE5.0 crushes.
> (But this is not a big problem).
> The problem is why inline layer disapears in NS 4.7.
>
> Any idea how can I add inline child layer ?
>
> Thanks,
> Krzysztof
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help