-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathimageScroller.html
executable file
·73 lines (53 loc) · 1.83 KB
/
imageScroller.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!-- Change this if you want to allow scaling -->
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=0;" />
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>ScrollTest</title>
<link media="screen" href="style.css" type= "text/css" rel="stylesheet" />
<script src="GloveBox.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
function onBodyLoad()
{
document.addEventListener("touchmove", preventBehavior, false);
var scroll1 = new GloveBox(document.getElementById("scrollImage"));
scroll1.scrollX = true;
var btnScroll = new GloveBox(document.getElementById("horzList"));
btnScroll.scrollX = true;
btnScroll.scrollY = false;
window.scrollTo(0,-200);
}
function preventBehavior(e)
{
e.preventDefault();
};
function showMainVersion()
{
window.location = "index.html";
}
</script>
</head>
<body onload="onBodyLoad()">
<div id="header" onclick="showMainVersion()">
<h1>Scrollable Image</h1>
</div>
<div id="container1" class="container" style="width:100%">
<img src="img/glovebox.jpg" id="scrollImage"/>
</div>
<div id="footer">
<ul id="horzList">
<li class="team"><span>Team</span></li>
<li class="feed"><span>Feed</span></li>
<li class="post"><span>Post</span></li>
<li class="box"><span>Box</span></li>
<li class="games"><span>Games</span></li>
<li class="team"><span>Team</span></li>
<li class="feed"><span>Feed</span></li>
<li class="post"><span>Post</span></li>
<li class="box"><span>Box</span></li>
<li class="games"><span>Games</span></li>
</ul>
</div>
</body>
</html>