-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsimplemarquee.html
More file actions
40 lines (39 loc) · 852 Bytes
/
Copy pathsimplemarquee.html
File metadata and controls
40 lines (39 loc) · 852 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
34
35
36
37
38
39
40
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple Marquee</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.simplemarquee.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#marquee').simplemarquee({
speed: 5000,
direction: 'rtl', // Options "ltr" or "rtl"
pause: true
});
});
</script>
<style type="text/css">
#marquee {
position:relative;
overflow:hidden;
width:100%;
}
#marquee .sections {
position:absolute;
left:0px;
top:0px;
white-space:nowrap;
}
#marquee .section {
padding:0px 10px;
float:left;
}
</style>
</head>
<body>
<div id="marquee">
Enter your scrolling text here!
</div>
</body>
</html>