Ajax Layer JavaScript DHTML

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


DynAPI Examples - Random Borders


dynapi.library.setPath('./dynapisrc/');
dynapi.library.include('dynapi.api');
dynapi.library.include('dynapi.functions.Math');
dynapi.library.include('dynapi.functions.Color');
dynapi.library.include('BorderManager');


var styles=['solid','dotted','inset','outset','groove'];
function generate(n) {
  for (var i=0;i    var d = new DynLayer();
    d.setBgColor(dynapi.functions.getRandomColor());
    d.setSize(10+80*Math.random(),10+80*Math.random());
    d.setLocation(100+500*Math.random(),400*Math.random());
    color = '#'+dynapi.functions.getRandomColor();
    d.setBorder(parseInt(4*Math.random()),color,styles[parseInt(4*Math.random())]);
    dynapi.document.addChild(d);
  }
}
generate(100)






           
       
dynapi.zip( 791 k)