Ajax Layer JavaScript DHTML

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


DynAPI Examples - DynLayer [Slide]


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


block = new DynLayer();
block.setSize(20,20);
block.setLocation(100,100);
block.setBgColor("red");
var listener = {};
listener.onpathstart = function(e) {
  status = "start";
}
listener.onpathrun = function(e) {
  var o = e.getSource();
  status = "play "+o.x+" "+o.y;
}
listener.onpathstop = function(e) {
  var o = e.getSource();
  status = "stop "+o.x+" "+o.y;;
}
block.addEventListener(listener);
dynapi.document.addChild(block);
//-->




SlideTo:

(100,100)

(200,100)

(200,200)

(100,200)

(400,50)

(50,400)


           
       
dynapi.zip( 791 k)