tutorial on using Css+jquery slides

Source: Internet
Author: User

Slides– is a simple, easy-to-customize and stylized, jquery slideshow plugin.

Slides offers many options such as fade or slide transitions, image fade, image pre-Press, auto-component pages, looping, auto-play customizations, and more.

With the slides plugin, you can play the slideshow randomly and set that set of slides you want to start. It comes with a full description and examples.

Directory

    1. Basic HTML structure
    2. Basic CSS Code
    3. Basic initialization of JavaScript code
    4. Official document explaining version 119
      1. Preloadboolean
      2. Preloadimagestring
      3. Containerstring
      4. Generatenextprevboolean
      5. Nextstring
      6. Prevstring
      7. Paginationboolean
      8. Generatepaginationboolean
      9. Paginationclassstring
      10. Currentclassstring

Slides– is a simple, easy-to-customize and stylized, jquery slideshow plugin.

Slides offers many options such as fade or slide transitions, image fade, image pre-Press, auto-component pages, looping, auto-play customizations, and more.

With the slides plugin, you can play the slideshow randomly and set that set of slides you want to start. It comes with a full description and examples.


Demo Address: http://slidesjs.com/

Website address: http://slidesjs.com/

: Http://slidesjs.com/downloads/slides.zip

Basic HTML structure [HTML]View PlainCopy
  1. <div id="slides">
  2. <div class="Slides_container">
  3. <div>
  4. <H1>slide 1</H1>
  5. <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut Labor E et dolore magna Aliqua. </P>
  6. </div>
  7. <div>
  8. <H1>slide 2</H1>
  9. <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore ET dolore magna Aliqua. </P>
  10. </div>
  11. <div>
  12. <H1>slide 3</H1>
  13. <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore ET dolore magna Aliqua. </P>
  14. </div>
  15. <div>
  16. <H1>slide 4</H1>
  17. <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut Labor E et dolore magna Aliqua. </P>
  18. </div>
  19. </div>
  20. </div>

Basic CSS Code [CSS]View PlainCopy
  1. <style type="text/css" media="screen" >
  2. . slides_container {
  3. width:470px;
  4. height:170px;
  5. }
  6. . Slides_container Div {
  7. width:470px;
  8. height:170px;
  9. display:block;
  10. }
  11. </style>

Basic initialization of JavaScript code [JavaScript]View PlainCopy
    1. <script>
    2. $ (function () {
    3. $ ("#slides"). Slides ();
    4. });
    5. </script>


Official document Explanation (version 1.1.9) preload (Boolean) when the parameter is set to trueIn the process of loading the photo in the album Show loading Pictures, set to false, it means do not show loading pictures [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Preload: true
    4. });
    5. });
The default value is: falsePreloadimage (String) This property generally followed a preload (Boolean)Used together, the value inside the string indicates what needs to be displayed Loading PicturesOf Path Address [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Preload: true,
    4. Preloadimage: '/img/loading.gif '
    5. });
    6. });
The default value is: "/img/loading.gif"Container (string) sets the top-level div where the picture layer is placed Style name [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Container: ' Slides_container '
    4. });
    5. });
The default value is: "Slides_container"Generatenextprev (Boolean) setting whether automatic generation prev NextButton [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Generatenextprev: True
    4. });
    5. });
The default value is: false  Next (string) auto-generated Next button style name [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Next: ' Next '
    4. });
    5. });
The default value is: "Next"

Prev (string) auto-generated Previous button style name [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Prev: ' prev '
    4. });
    5. });
The default value is: "Prev"

Pagination (Boolean) If you do not use pagination to display the picture you can set it to false, but not necessary, recommend not to do settings [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Pagination: true
    4. });
    5. });


Generatepagination (Boolean) setting whether automatic generation Paging navigation layer [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Generatepagination: True
    4. });
    5. });
The default value is: true

Paginationclass (String) setting Paging navigation layerOf Style name [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Paginationclass: ' pagination '
    4. });
    5. });
The default value is: "Pagination"

Currentclass (string) setting in the paging navigation layer Current Paging ItemOf Style name [JavaScript]View PlainCopy
    1. $ (function () {
    2. $ ("#slides"). Slides ({
    3. Currentclass: ' current '
    4. });
    5. });
The default value is: "Current"

tutorial on using Css+jquery slides

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.