-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.html
More file actions
56 lines (50 loc) · 1.21 KB
/
Copy pathtest.html
File metadata and controls
56 lines (50 loc) · 1.21 KB
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<!-- An example of using JQuery to make looping clouds. -->
<head>
<title>Transition Test</title>
<style>
body {
background: #000;
}
#frame {
width: 600px;
height: 400px;
overflow: hidden;
}
#slider {
position: relative;
width: 1200px;
}
.one, .two {
width: 600px;
height: 400px;
float: left;
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
function resetAnimation() {
$("#slider").animate({ "left": "-=600px"}, 10000, function() {
$("#slider").css("left", "0");
resetAnimation();
});
}
resetAnimation();
});
</script>
</head>
<body>
<div id="header">
<h1>Transition Test</h1>
</div>
<div id="frame">
<div id="slider">
<img src="img/cloud1.png" class="one">
<img src="img/cloud1.png" class="two">
</div>
</div>
</body>
</html>