Guest User

Untitled

a guest
Jun 30th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.05 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4.   <meta charset="utf-8">
  5.   <title>SlidesJS Basic 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.  
  9.   <!-- SlidesJS Required (if responsive): Sets the page width to the device width. -->
  10.   <meta name="viewport" content="width=device-width">
  11.   <!-- End SlidesJS Required -->
  12.  
  13.   <!-- SlidesJS Required: These styles are required if you'd like a responsive slideshow -->
  14.   <style>
  15.     /* Prevent the slideshow from flashing on load */
  16.     #slides {
  17.       display: none;
  18.     }
  19.  
  20.     /* Center the slideshow */
  21.     .container {
  22.  
  23.       margin: 0 auto
  24.     }
  25.  
  26.     #slides .slidesjs-container {
  27.   margin-bottom:10px;
  28.   border-color: #ff5566;
  29.   border-width: 3px;
  30.   border-style:solid;
  31. }
  32.  
  33.     /* Show active item in the pagination */
  34.     .slidesjs-pagination .active {
  35.       color:red;
  36.     }
  37.  
  38.     /* Media quires for a responsive layout */
  39.  
  40.     /* For tablets & smart phones */
  41.    @media (max-width: 767px) {
  42.      body {
  43.        padding-left: 10px;
  44.         padding-right: 10px;
  45.       }
  46.       .container {
  47.         width: auto
  48.       }
  49.     }
  50.  
  51.     /* For smartphones */
  52.     @media (max-width: 480px) {
  53.       .container {
  54.         width: auto
  55.       }
  56.     }
  57.  
  58.     /* For smaller displays like laptops */
  59.     @media (min-width: 768px) and (max-width: 979px) {
  60.       .container {
  61.         width: 724px
  62.       }
  63.     }
  64.  
  65.     /* For larger displays */
  66.     @media (min-width: 1200px) {
  67.       .container {
  68.         width: 1170px
  69.       }
  70.     }
  71.   </style>
  72.   <!-- SlidesJS Required: -->
  73. </head>
  74. <body>
  75.  
  76.   <!-- SlidesJS Required: Start Slides -->
  77.   <!-- The container is used to define the width of the slideshow -->
  78.   <div class="container">
  79.     <div id="slides">
  80.       <img src="img/example-slide-1.jpg" alt="Photo by: Missy S Link: http://www.flickr.com/photos/listenmissy/5087404401/">
  81.       <img src="img/example-slide-2.jpg" alt="Photo by: Daniel Parks Link: http://www.flickr.com/photos/parksdh/5227623068/">
  82.       <img src="img/example-slide-3.jpg" alt="Photo by: Mike Ranweiler Link: http://www.flickr.com/photos/27874907@N04/4833059991/">
  83.       <img src="img/example-slide-4.jpg" alt="Photo by: Stuart SeegerLink: http://www.flickr.com/photos/stuseeger/97577796/">
  84.     </div>
  85.   </div>
  86.   <!-- End SlidesJS Required: Start Slides -->
  87.  
  88.   <!-- SlidesJS Required: Link to jQuery -->
  89.   <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
  90.   <!-- End SlidesJS Required -->
  91.  
  92.   <!-- SlidesJS Required: Link to jquery.slides.js -->
  93.   <script src="js/jquery.slides.min.js"></script>
  94.   <!-- End SlidesJS Required -->
  95.  
  96.   <!-- SlidesJS Required: Initialize SlidesJS with a jQuery doc ready -->
  97.   <script>
  98.     $(function() {
  99.       $('#slides').slidesjs({
  100.         width: 940,
  101.         height: 528
  102.       });
  103.     });
  104.   </script>
  105.   <!-- End SlidesJS Required -->
  106. </body>
  107. </html>
Advertisement
Add Comment
Please, Sign In to add comment