Ajax Layer JavaScript DHTML

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


DynAPI Examples - Path Animation [Slide]


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


dynapi.onLoad(function() {
  block = new DynLayer();
  block.setSize(20,20);
  block.setLocation(100,100);
  block.setBgColor("red");
  var listener = {};
  listener.onthreadstart = function(e) {
    status = "start";
  }
  listener.onthreadrun = function(e) {
    var o = e.getSource();
    status = "play "+o.x+" "+o.y;
  }
  listener.onthreadstop = listener.onthreadfinish = 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)