标题:如何将拖动后的页面参数保存?
只看楼主
cyhchenz
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-9-29
 问题点数:0 回复次数:0 
如何将拖动后的页面参数保存?
<style>
.drag{position:relative;cursor:hand}
</style>
<script language="JavaScript">
var dragapproved=false
var z,x,y
function move(){
if (event.button==1&&dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false}}
function drags(){
if (!document.all)
return
if (event.srcElement.className=="drag"){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move}}
document.onmousedown=drags
document.onmouseup=new Function("dragapproved=false")
</script>
搜索更多相关主题的帖子: 拖动 参数 页面 保存 
2005-09-29 12:15



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-28999-1-1.html




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

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