ecms_dialog.js 345 B

123456789101112131415
  1. var over=false,down=false,divleft,divtop,n;
  2. function clase(x){
  3. document.all[x].style.visibility='hidden'
  4. }
  5. function down1(m){
  6. n=m;
  7. down=true;
  8. divleft=event.clientX-parseInt(m.style.left);
  9. divtop=event.clientY-parseInt(m.style.top)
  10. }
  11. function move(){
  12. if(down){
  13. n.style.left=event.clientX-divleft;n.style.top=event.clientY-divtop;
  14. }
  15. }