forked from HarlanH/code-for-dc-edu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo_single_rotator.html
executable file
·36 lines (33 loc) · 1.67 KB
/
demo_single_rotator.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Link to Latest version of jQuery -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
<!-- Link to plugin js -->
<script src="jQueryImgRotator.js" type="text/javascript"></script>
<title>jQueryImageRotator DEMO - Single rotator</title>
</head>
<body>
<div id="imgRotator1">
<ul>
<li><a href=""><img src="demo_images/1.jpg" border="0" alt="" title="" width="300" height="216" /></a></li>
<li><a href=""><img src="demo_images/2.jpg" border="0" alt="" title="" width="300" height="216" /></a></li>
<li><a href=""><img src="demo_images/3.jpg" border="0" alt="" title="" width="300" height="216" /></a></li>
<li><a href=""><img src="demo_images/4.jpg" border="0" alt="" title="" width="300" height="216" /></a></li>
<li><a href=""><img src="demo_images/5.jpg" border="0" alt="" title="" width="300" height="216" /></a></li>
</ul></div>
<script type="text/javascript">
var rotator1_options = {
'speed': 2000, //how fast it roates
'rate': 1000, //animation rate of the fade
'width': '300px', //width of the rotator, minimally should equally image's width
'height': '216px' //height of the rotator, minimally should equally image's height
};
$('#imgRotator1').imgRotator(rotator1_options);
//call loadStyle method to add some css
var rotator1_style = "#imgRotator1 { border: 5px solid #000;} ";
$('#imgRotator1').imgRotator("loadStyle", "inline", rotator1_style);
</script>
</body>
</html>