-
Notifications
You must be signed in to change notification settings - Fork 2
/
DragObj.htm
57 lines (41 loc) · 1.43 KB
/
DragObj.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>DragObj</title>
<script type="text/javascript" src="jWebForm.js"></script>
<script type="text/javascript" src="DragObj.js"></script>
<script type="text/javascript">
$j.Page_Load = function Page_Load() {
var div1 = document.getElementById("div1");
var drag1 = $j.DragObj(div1);
drag1.Show();
var div2 = document.getElementById("div2");
var drag2 = $j.DragObj(div2);
drag2.Left("300px");
drag2.Top("200px");
drag2.Show();
var div3 = document.getElementById("div3");
var drag3 = $j.DragObj(div3);
drag3.Left("500px");
drag3.Top("150px");
drag3.Width("300px");
drag3.Height("250px");
drag3.Show();
}
</script>
</head>
<body>
<div style="font-size:60px">
拖拖看<br />
可将鼠标放在对话框边缘调整对话框大小
</div>
<div id="div1"
style="border:1px solid blue; width:100%; height:100%;">
</div>
<div id="div2"
style="border:1px solid blue; width:100%; height:100%; background-color:blue">
</div>
<div id="div3" style="width: 100%; height: 100%; background-image: url(images/美女1-1.jpg)"></div>
</body>
</html>