-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample53.htm
More file actions
executable file
·33 lines (24 loc) · 836 Bytes
/
example53.htm
File metadata and controls
executable file
·33 lines (24 loc) · 836 Bytes
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head><title>Plug-in JavaScript: Example 53</title>
<script src="PJ.js"></script>
<script>Initialize()</script>
</head><body>
<img id='ball' src='ball.png' />
<script>
window.onload = function()
{
Position('ball', ABS)
width = GetWindowWidth()
height = GetWindowHeight()
r = width - 100
b = height - 100
x = width / 2 - 50
y = height / 2 - 50
ch1 = InsVars("Slide('ball', #1, #2, #3, #4, 500, 0)", 0, y, x, 0)
ch2 = InsVars("Slide('ball', #1, #2, #3, #4, 500, 0)", x, 0, r, y)
ch3 = InsVars("Slide('ball', #1, #2, #3, #4, 500, 0)", r, y, x, b)
ch4 = InsVars("Slide('ball', #1, #2, #3, #4, 500, 0)", x, b, 0, y)
Chain(Array(ch1, ch2, ch3, ch4))
}
</script>