js代碼:fun
_MoveObj = null;//全部變量
z_index =
jQuery
_IsMove =
_MouseLeft =
_MouseTop =
$(document)
if(_IsMove==
$(_MoveObj)
}
})
_IsMove=
$(_MoveObj)
});
return $(this)
_IsMove=
_MoveObj = this;
var offset =$(this)
_MouseLeft = e
_MouseTop = e
z_index++;
_MoveObj
$(_MoveObj)
});
}
html代碼:
<!DOCTYPE HTML PUBLIC "
<html>
<head>
<title>demo
<meta http
<script src="scripts/jquery
<script src="myFun
<style type="text/css">
background:#EAEAEA;
width:
height:
border:
cursor: pointer;
text
line
}
cursor:move;
filter:alpha(Opacity=
opacity:
background
}
</style>
<script type="text/javascript">
$(function(){
$("
//$("#myDiv
})
</script>
</head>
<body>
<div id="myDiv
<div id="myDiv
<div id="myDiv
<div id="myDiv
<div id="myDiv
<div id="myDiv
<div id="show"></div>
</body>
</html>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20390.html