Ajax Layer JavaScript DHTML

http://dynapi.sourceforge.net/
GNU LESSER GENERAL PUBLIC LICENSE
Version 2.1, February 1999


DynAPI Examples - DynLayer Anchor II


dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');


  var parentLayer = dynapi.document.addChild(new DynLayer(null,200,10,50,50,'#999999'));
  var greenLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'green'));
      greenLayer.setAnchor({right:0,bottom:0});
  var redLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'red'));
      redLayer.setAnchor({top:0,left:0});
  var blueLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'blue'));
      blueLayer.setAnchor({top:0,right:0});
  var yellowLayer = parentLayer.addChild(new DynLayer(null,0,0,8,8,'yellow'));
      yellowLayer.setAnchor({bottom:0,left:0});
  dynapi.document.addChild(parentLayer);








  
    Green Layer 
 set the
      green layer's width to 16
 set
      the green layer's width to 8
 set
      the green layer's width to 1
 set
      the green layer's height to 16
 set
      the green layer's height to 8
 set
      the green layer's height to 1 
    Red Layer 
 set the red
      layer's width to 16
 set
      the red layer's width to 8
 set
      the red layer's width to 1
 set
      the red layer's height to 16
 set
      the red layer's height to 8
 set
      the red layer's height to 1
  
  
    Blue Layer 
 set the blue
      layer's width to 16
 set
      the blue layer's width to 8
 set
      the blue layer's width to 1
 set
      the blue layer's height to 16
 set
      the blue layer's height to 8
 set
      the blue layer's height to 1
    Yellow Layer 
 set the
      yellow layer's width to 16
 set
      the yellow layer's width to 8
 set
      the yellow layer's width to 1
 set
      the yellow layer's height to 16
 set
      the yellow layer's height to 8
 set
      the yellow layer's height to 1
  


















           
       
dynapi.zip( 791 k)