parent is a very bad choice of name I'm thinking
----- Original Message -----
From: "Krzysztof Kaczmarski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 7:52 AM
Subject: [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


---
Outgoing mail is certified Virus Free by AVG Free Edition
http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01


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

Reply via email to