-
Notifications
You must be signed in to change notification settings - Fork 0
/
testMove.html
44 lines (39 loc) · 1 KB
/
testMove.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Test move</title>
<style>
.box {
width: 100px;
height: 100px;
background: yellow;
filter: alpha('opacity:20');
opacity: 0.2;
}
</style>
<script src="move2.js"></script>
<script>
window.onload = function () {
var oBox = document.getElementById('div');
var oBtn = document.getElementById('btn');
oBtn.onclick = function () {
var attrValue = {
width: 200,
height: 200
}
startMove(oBox, attrValue, function () {
var attrValue2 = {
opacity: 100
}
startMove(oBox, attrValue2);
});
}
}
</script>
</head>
<body>
<input type="button" id="btn" value="运动">
<div id="div" class="box"></div>
</body>
</html>