index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SlidesJS Standard Code Example</title>
  6. <meta name="description" content="SlidesJS is a simple slideshow plugin for jQuery. Packed with a useful set of features to help novice and advanced developers alike create elegant and user-friendly slideshows.">
  7. <meta name="author" content="Nathan Searles">
  8. <!-- SlidesJS Required (if responsive): Sets the page width to the device width. -->
  9. <meta name="viewport" content="width=device-width">
  10. <!-- End SlidesJS Required -->
  11. <!-- CSS for slidesjs.com example -->
  12. <link rel="stylesheet" href="css/example.css">
  13. <link rel="stylesheet" href="css/font-awesome.min.css">
  14. <!-- End CSS for slidesjs.com example -->
  15. <!-- SlidesJS Optional: If you'd like to use this design -->
  16. <style>
  17. body {
  18. -webkit-font-smoothing: antialiased;
  19. font: normal 15px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
  20. color: #232525;
  21. padding-top:70px;
  22. }
  23. #slides {
  24. display: none
  25. }
  26. #slides .slidesjs-navigation {
  27. margin-top:5px;
  28. }
  29. a.slidesjs-next,
  30. a.slidesjs-previous,
  31. a.slidesjs-play,
  32. a.slidesjs-stop {
  33. background-image: url(img/btns-next-prev.png);
  34. background-repeat: no-repeat;
  35. display:block;
  36. width:12px;
  37. height:18px;
  38. overflow: hidden;
  39. text-indent: -9999px;
  40. float: left;
  41. margin-right:5px;
  42. }
  43. a.slidesjs-next {
  44. margin-right:10px;
  45. background-position: -12px 0;
  46. }
  47. a:hover.slidesjs-next {
  48. background-position: -12px -18px;
  49. }
  50. a.slidesjs-previous {
  51. background-position: 0 0;
  52. }
  53. a:hover.slidesjs-previous {
  54. background-position: 0 -18px;
  55. }
  56. a.slidesjs-play {
  57. width:15px;
  58. background-position: -25px 0;
  59. }
  60. a:hover.slidesjs-play {
  61. background-position: -25px -18px;
  62. }
  63. a.slidesjs-stop {
  64. width:18px;
  65. background-position: -41px 0;
  66. }
  67. a:hover.slidesjs-stop {
  68. background-position: -41px -18px;
  69. }
  70. .slidesjs-pagination {
  71. margin: 7px 0 0;
  72. float: right;
  73. list-style: none;
  74. }
  75. .slidesjs-pagination li {
  76. float: left;
  77. margin: 0 1px;
  78. }
  79. .slidesjs-pagination li a {
  80. display: block;
  81. width: 13px;
  82. height: 0;
  83. padding-top: 13px;
  84. background-image: url(img/pagination.png);
  85. background-position: 0 0;
  86. float: left;
  87. overflow: hidden;
  88. }
  89. .slidesjs-pagination li a.active,
  90. .slidesjs-pagination li a:hover.active {
  91. background-position: 0 -13px
  92. }
  93. .slidesjs-pagination li a:hover {
  94. background-position: 0 -26px
  95. }
  96. #slides a:link,
  97. #slides a:visited {
  98. color: #333
  99. }
  100. #slides a:hover,
  101. #slides a:active {
  102. color: #9e2020
  103. }
  104. .navbar {
  105. overflow: hidden
  106. }
  107. </style>
  108. <!-- End SlidesJS Optional-->
  109. <!-- SlidesJS Required: These styles are required if you'd like a responsive slideshow -->
  110. <style>
  111. #slides {
  112. display: none
  113. }
  114. .container {
  115. margin: 0 auto
  116. }
  117. /* For tablets & smart phones */
  118. @media (max-width: 767px) {
  119. body {
  120. padding-left: 20px;
  121. padding-right: 20px;
  122. }
  123. .container {
  124. width: auto
  125. }
  126. }
  127. /* For smartphones */
  128. @media (max-width: 480px) {
  129. .container {
  130. width: auto
  131. }
  132. }
  133. /* For smaller displays like laptops */
  134. @media (min-width: 768px) and (max-width: 979px) {
  135. .container {
  136. width: 724px
  137. }
  138. }
  139. /* For larger displays */
  140. @media (min-width: 1200px) {
  141. .container {
  142. width: 1170px
  143. }
  144. }
  145. </style>
  146. <!-- SlidesJS Required: -->
  147. </head>
  148. <body>
  149. <!-- SlidesJS Required: Start Slides -->
  150. <!-- The container is used to define the width of the slideshow -->
  151. <div class="container">
  152. <div id="slides">
  153. <img src="img/example-slide-1.jpg" alt="Photo by: Missy S Link: http://www.flickr.com/photos/listenmissy/5087404401/">
  154. <img src="img/example-slide-2.jpg" alt="Photo by: Daniel Parks Link: http://www.flickr.com/photos/parksdh/5227623068/">
  155. <img src="img/example-slide-3.jpg" alt="Photo by: Mike Ranweiler Link: http://www.flickr.com/photos/27874907@N04/4833059991/">
  156. <img src="img/example-slide-4.jpg" alt="Photo by: Stuart SeegerLink: http://www.flickr.com/photos/stuseeger/97577796/">
  157. </div>
  158. </div>
  159. <!-- End SlidesJS Required: Start Slides -->
  160. <!-- SlidesJS Required: Link to jQuery -->
  161. <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  162. <!-- End SlidesJS Required -->
  163. <!-- SlidesJS Required: Link to jquery.slides.js -->
  164. <script src="js/jquery.slides.min.js"></script>
  165. <!-- End SlidesJS Required -->
  166. <!-- SlidesJS Required: Initialize SlidesJS with a jQuery doc ready -->
  167. <script>
  168. $(function() {
  169. $('#slides').slidesjs({
  170. width: 940,
  171. height: 528,
  172. play: {
  173. active: true,
  174. auto: true,
  175. interval: 4000,
  176. swap: true
  177. }
  178. });
  179. });
  180. </script>
  181. <!-- End SlidesJS Required -->
  182. </body>
  183. </html>