| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 624 人关注过本帖
标题:如何将下列操作后的参数提交到表单里?
只看楼主 加入收藏
cyhchenz
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-9-29
收藏
 问题点数:0 回复次数:0 
如何将下列操作后的参数提交到表单里?

<SCRIPT LANGUAGE="JavaScript"> <!-- var currentMoveObj = null; //当前拖动对象 var relLeft; //鼠标按下位置相对对象位置 var relTop; var zindex=-1;//控制被拖动对象的z-index值 function f_mdown(obj) { currentMoveObj = obj; //当对象被按下时,记录该对象 currentMoveObj.style.position = "absolute"; relLeft = event.x - currentMoveObj.style.pixelLeft; relTop = event.y - currentMoveObj.style.pixelTop; zindex=currentMoveObj.style.zIndex;//记录原z-index值 currentMoveObj.style.zIndex=10000; } window.document.onmouseup = function() { currentMoveObj.style.zIndex=zindex;//恢复 zindex=-1;

currentMoveObj = null; //当鼠标释放时同时释放拖动对象 } function f_move(obj) { if(currentMoveObj != null) { currentMoveObj.style.pixelLeft=event.x-relLeft; currentMoveObj.style.pixelTop=event.y-relTop; } }

//--> </SCRIPT> <BODY> <TABLE width="100" border=1 onselectstart="return false" style="position:absolute;left:50;top:50" onmousedown="f_mdown(this)" onmousemove="f_move(this)"> <TR> <TD bgcolor="#CCCCCC" align="center" style="cursor:move">title1</TD> </TR> <TR> <TD align="center" height="60">content</TD> </TR> </TABLE> <TABLE width="100" border=1 onselectstart="return false" style="position:absolute;left:350;top:250" onmousedown="f_mdown(this)" onmousemove="f_move(this)"> <TR> <TD bgcolor="#CCCCCC" align="center" style="cursor:move">title2</TD> </TR> <TR> <TD align="center" height="60">content</TD> </TR> </TABLE> </BODY>

搜索更多相关主题的帖子: 表单 参数 
2005-09-29 12:00
快速回复:如何将下列操作后的参数提交到表单里?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.010975 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved