-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.html
More file actions
55 lines (53 loc) · 1.68 KB
/
demo.html
File metadata and controls
55 lines (53 loc) · 1.68 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
<html>
<head>
<title>Scroller</title>
<style type="text/css">
.frame {
font:12px arial;
width:200;
height:200;
border:none;
overflow:hidden;
border:1px solid black;
padding:5;
}
</style>
</head>
<body>
<div class="frame" id="news">
<div>
NEWS
<hr />
</div>
<div>Segment 1</div>
<div>Segment 2</div>
<div>Segment 3</div>
<div>Segment 4</div>
<div>Segment 5</div>
<div>Segment 6</div>
<div>Segment 7</div>
<div>Segment 8</div>
<div>Segment 9</div>
<div>Segment 10</div>
<div>Segment 11</div>
<div>Segment 12</div>
<div>Segment 13</div>
<div>Segment 14</div>
<div>Segment 15</div>
<div>Segment 16</div>
<div>Segment 17</div>
<div>Segment 18</div>
<div>Segment 19</div>
</div>
</body>
<script type="text/javascript" src="AutoScroller.js"></script>
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.5.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
AutoScroller.div = document.getElementById("news");
AutoScroller.scroll();
$('#news').mouseenter(function () { AutoScroller.pauseScroller(); });
$('#news').mouseleave(function () { AutoScroller.startScroller(); });
});
</script>
</html>