⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 拖动表格.htm

📁 javascript编程的组件
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0045)http://fason.nease.net/zhuanti/table/move.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<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>

<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<TABLE id=oTable height=250 cellSpacing=0 cellPadding=0 width=200 align=center 
border=1>
  <TBODY>
  <TR>
    <TD id=up bgColor=#330099></TD></TR>
  <TR>
    <TD onmouseup=fnUp onmousemove=fnMove() onmousedown=fnDown() id=mid 
    bgColor=#3366cc height=40></TD></TR>
  <TR>
    <TD id=down bgColor=#330099></TD></TR></TBODY></TABLE>
<P align=right><A href="http://fason.nease.net/">【阿信的小天地】</A></P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -