加入收藏-方便您以后查找网页特效哦
你的位置:
主页
>>
表格特效
拖动单元格
加入如下代码到head区域
<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.y-oTable.offsetTop-oy; if (th<1) th=1; if(th+parseInt(mid.height)>parseInt(oTable.height)) th=parseInt(oTable.height)-parseInt(mid.height); up.height=th; }}function fnUp(){fnRelease();}function fnRelease(){ isDraging=false; mid.releaseCapture();}</SCRIPT>
加入如下代码到body区域
<TABLE id=oTable height=250 cellSpacing=0 cellPadding=0 width=200 border=1> <TBODY> <TR> <TD id=up bgColor=#FF9966></TD> </TR> <TR> <TD onmouseup=fnUp onmousemove=fnMove() onmousedown=fnDown() id=mid bgColor=#6699FF height=40></TD> </TR> <TR> <TD id=down bgColor=#FF9966></TD> </TR> </TBODY> </TABLE>
COPYRIGHT © 2003-2005 ALL RIGHTS RESERVED
业务联系
|
广告服务
|
网站建设
|
关于我们
|
免责声明
月光宝盒工作室
800*600