改变table的列宽(20041103)
http://jkisjk.vip.sina.com/html/ChangeColumnWidth.htm

解决方案 »

  1.   

    <script>
    var isDraging=false;
    var ox,oy;
    function fnDown()
    {    
    isDraging=true;    
    ox=event.offsetX;    
    oy=event.offsetY;    
    mid.setCapture();
    }
    function fnMove()
    {
    if(event.button!=1) fnRelease();
    if(isDraging)
    {    
    var th=event.x-oTable.offsetLeft-ox;    
    if (th<1) th=1;    
    if(th+parseInt(mid.offsetWidth)>parseInt(oTable.offsetWidth)) th=parseInt(oTable.offsetWidth)-parseInt(mid.offsetWidth);    
    up.style.posWidth=th;    
    }
    } function fnUp()
    {
    fnRelease();
    }
    function fnRelease()
    {    
    isDraging=false;    
    mid.releaseCapture();
    }
    </script>
    <BODY>
    <TABLE id=oTable width="100%" height="100%" border=1 cellspacing="0" cellpadding="0" >
    <TR><TD id=up >sdfsd</TD><TD id=mid width=5 bgColor=#3366CC onmousedown="fnDown()" onmousemove="fnMove()" onmouseup="fnUp"></TD><TD id=down >sdfsdf</TD></TR>
    </TABLE>
    </BODY>
      

  2.   

    sdcfdff===============================
        CSDN小助手 是一款脱离浏览器也可以使用csdn论坛的
    软件!
        界面: http://qqwwee.com/
        下载: http://qqwwee.com/csdn.rar 包含源代码