http://dynapi.sourceforge.net/ GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 <html> <head> <title>DynAPI Examples - DynLayer [Inline]</title> <script language="JavaScript" src="./dynapisrc/dynapi.js"></script> <script language="Javascript"> dynapi.library.setPath('./dynapisrc/'); dynapi.library.include('dynapi.library'); dynapi.library.include('dynapi.debug'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.api.ext.DynLayerInline'); </script> <script language="Javascript">
var mylayer, mychild, mygrandchild ;
dynapi.onLoad(init);
function init() { mylayer = DynLayer.getInline("mylayer"); mychild = DynLayer.getInline("mychild", mylayer);
// new method mygrandchild = new DynLayer(); // create layer mygrandchild.setID('mygrandchild',true); // set inline id mychild.addChild(mygrandchild); //make sure to add the child to it's parent!
var el = { onmousedown : function(e) { dynapi.debug.print('mousedown on '+e.getSource().id) e.preventBubble(); } }