Ajax Layer JavaScript DHTML

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


Drag - Mouse Button Test


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


var lyr = new DynLayer(null,0,0,100,100,"e0e0e0");
lyr.addEventListener({
     ondragstart:function(e){
          status=e.getButton();
          if(e.getButton() == "right"){
               e.cancelDrag();
          }
     }
});
DragEvent.enableDragEvents(lyr);
dynapi.document.addChild(lyr);
dynapi.document.disableContextMenu();



You can drag and drop me with mouse left( and middle) button.



           
       
dynapi.zip( 791 k)