Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. <script type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
  2. <script src="responsiveslides.min.js"></script>
  3.  
  4.  
  5. <div style="heigt: 500px;">
  6. <ul class="rslides" id="slider1">
  7. <li><img src="img/businessbig.jpg" alt="" ></li>
  8. <li><img src="img/cateringbig.jpg" alt=""></li>
  9. <li><img src="img/nurseriesbig.jpg" alt=""></li>
  10. </ul>
  11. </div>
  12.  
  13. This is sat at the bottom of the page:
  14.  
  15. <script type="text/javascript">
  16. $(document).ready(function() {
  17.  
  18. $('#nav-mobile ul').hide();
  19. $('#nav-mobile').click(function(e) {
  20. $('#nav-mobile ul').slideToggle();
  21. });
  22. });
  23. </script>
  24.  
  25.  
  26.  
  27. <script>
  28. $(function() {
  29. $(".rslides").responsiveSlides();
  30. });
  31.  
  32. $(".rslides").responsiveSlides({
  33. auto: true, // Boolean: Animate automatically, true or false
  34. speed: 500, // Integer: Speed of the transition, in milliseconds
  35. timeout: 4000, // Integer: Time between slide transitions, in milliseconds
  36. pager: false, // Boolean: Show pager, true or false
  37. nav: false, // Boolean: Show navigation, true or false
  38. random: false, // Boolean: Randomize the order of the slides, true or false
  39. pause: false, // Boolean: Pause on hover, true or false
  40. pauseControls: true, // Boolean: Pause when hovering controls, true or false
  41. prevText: "Previous", // String: Text for the "previous" button
  42. nextText: "Next", // String: Text for the "next" button
  43. maxwidth: "", // Integer: Max-width of the slideshow, in pixels
  44. navContainer: "", // Selector: Where controls should be appended to, default is after the 'ul'
  45. manualControls: "", // Selector: Declare custom pager navigation
  46. namespace: "rslides", // String: Change the default namespace used
  47. before: function(){}, // Function: Before callback
  48. after: function(){} // Function: After callback
  49. });
  50. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement