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
- Basic HTML structure
- Basic CSS Code
- Basic initialization of JavaScript code
- Official document explaining version 119
- Preloadboolean
- Preloadimagestring
- Containerstring
- Generatenextprevboolean
- Nextstring
- Prevstring
- Paginationboolean
- Generatepaginationboolean
- Paginationclassstring
- 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
- <div id="slides">
- <div class="Slides_container">
- <div>
- <H1>slide 1</H1>
- <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut Labor E et dolore magna Aliqua. </P>
- </div>
- <div>
- <H1>slide 2</H1>
- <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore ET dolore magna Aliqua. </P>
- </div>
- <div>
- <H1>slide 3</H1>
- <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore ET dolore magna Aliqua. </P>
- </div>
- <div>
- <H1>slide 4</H1>
- <p>lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut Labor E et dolore magna Aliqua. </P>
- </div>
- </div>
- </div>
Basic CSS Code
[CSS]View PlainCopy
- <style type="text/css" media="screen" >
- . slides_container {
- width:470px;
- height:170px;
- }
- . Slides_container Div {
- width:470px;
- height:170px;
- display:block;
- }
- </style>
Basic initialization of JavaScript code
[JavaScript]View PlainCopy
- <script>
- $ (function () {
- $ ("#slides"). Slides ();
- });
- </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
- $ (function () {
- $ ("#slides"). Slides ({
- Preload: true
- });
- });
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
- $ (function () {
- $ ("#slides"). Slides ({
- Preload: true,
- Preloadimage: '/img/loading.gif '
- });
- });
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
- $ (function () {
- $ ("#slides"). Slides ({
- Container: ' Slides_container '
- });
- });
The default value is:
"Slides_container"Generatenextprev (Boolean) setting whether automatic generation
prev NextButton
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Generatenextprev: True
- });
- });
The default value is:
false
Next (string) auto-generated
Next button style name
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Next: ' Next '
- });
- });
The default value is:
"Next"
Prev (string) auto-generated
Previous button style name
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Prev: ' prev '
- });
- });
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
- $ (function () {
- $ ("#slides"). Slides ({
- Pagination: true
- });
- });
Generatepagination (Boolean) setting whether automatic generation
Paging navigation layer
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Generatepagination: True
- });
- });
The default value is:
true
Paginationclass (String) setting
Paging navigation layerOf
Style name
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Paginationclass: ' pagination '
- });
- });
The default value is:
"Pagination"
Currentclass (string) setting in the paging navigation layer
Current Paging ItemOf
Style name
[JavaScript]View PlainCopy
- $ (function () {
- $ ("#slides"). Slides ({
- Currentclass: ' current '
- });
- });
The default value is:
"Current"
tutorial on using Css+jquery slides