var obj_x,obj_y,obj_width,obj_height;
   var flag=false;
   var obj;
   function table_resize_start(e,target_id){
    flag=true;
    obj=document.getElementById(target_id);
    if(document.all){
      obj_x=e.clientX;
      obj_y=e.clientY;
      obj_width = obj.style.pixelWidth;
      obj_height = obj.style.pixelHeight;     
    }else if(document.getElementById){    
      obj_x=e.pageX;
      obj_y=e.pageY;
      obj_width = parseInt((obj.style.width).replace("px",""),10);
      obj_height = parseInt((obj.style.height).replace("px",""),10);     
    }  
    obj.style.cursor= "n-resize";      
   }
   function table_resize(e){
   if(flag){
     if(document.all){
      obj_xx=e.clientX-obj_x
      obj_yy=e.clientY-obj_y     
      obj.style.pixelWidth=obj_width + obj_xx;
      obj.style.pixelHeight=obj_height +obj_yy;     
      }
     else if(document.getElementById){
      obj_xx=e.pageX-obj_x
      obj_yy=e.pageY-obj_y     
      objWidth = obj_width+obj_xx;
      objHeight = obj_height+obj_yy;
      obj.style.width=objWidth+"px"
      obj.style.height=objHeight+"px"
      }
     }
   }
   
   function table_resize_end(){
    flag=false;
    obj.style.cursor= "";
   }
Posted by 삽지리
,