爱问知识人 爱问教育 医院库

div拖动窗体

首页

div拖动窗体

如何实现DIV拖动窗体?

提交回答
好评回答

其他答案

    2008-07-17 10:57:47
  •   这个没有什么意义,,,把网页搞得大大的。。happyjinwangisagoodmanhappyjinwangisagoodmanhappyjinwangisagoodmanyes,hedohappyjinwangdefault。 { :#fff;color:#100;font- :微软雅黑,Arial,Helvetica,sans-serif;}。
      default{solid#f11;background:#fee;line-}。default。tit{background:#f11;text-color:#fee;font-}。 d{}。 ose{}。footName{font-color:#f11;}default。
      js://控制层移动varObj=''varindex=10000;//z-index;document。onmouseup=moveUp;document。onmousemove=moveMove;functionmoveDown(Object){Obj= ; l(Obj)。
      setCapture();pX=e l(Obj)。style。pixelLeft;pY= l(Obj)。style。pixelTop;}functionmoveMove(){if(Obj!=''){ l(Obj)。style。left=event。
      x-pX; l(Obj)。 p=event。y-pY;}}functionmoveUp(){if(Obj!=''){ l(Obj)。releaseCapture();Obj='';}}//控制层移动//获得焦点functiongetFocus(obj){if( yle。
      zIndex!=index){index=index+2;varidx=index; yle。zIndex=idx;// yle。zIndex=idx-1;}}。

    外***

    2008-07-17 10:57:47

类似问题

换一换

相关推荐

正在加载...
最新资料 推荐信息 热门专题 热点推荐
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200

热点检索

  • 1-20
  • 21-40
  • 41-60
  • 61-80
  • 81-100
  • 101-120
  • 121-140
  • 141-160
  • 161-180
  • 181-200
返回
顶部
帮助 意见
反馈

确定举报此问题

举报原因(必选):