Smallslider Picture Carousel plugin Handy Picture plugin

Source: Internet
Author: User

Example code:
HTML section
HTML code:

<div id= "Flashbox" class= "Smallslider" ><ul><li><a href= "#" ></a></li><li><a href=" # "></a></li><li><a href= "#" ></a></li><li><a href=" # "></a></li><li><a href= "#" >< /a></li></ul></div>


JS section
JS Code:

<script type= "Text/javascript" >$ (document). Ready (function () {$ (' #flashbox '). Smallslider ({Onimagestop:false , Switcheffect: ' Ease ', switchease: ' Easeoutbounce ', Switchpath: ' Up ', Switchmode: ' Hover ', textswitch:2,textposition: ' Top ', textAlign: ' Center '}); </script>

What do you think? Simple enough, huh? There is no need to write extra HTML code at all.
Call Method:
1. Make sure your page is linked into 3 files:
<script type= "Text/javascript" src= "Rs/js/jquery-1.3.2.min.js" ></script>
<script type= "Text/javascript" src= "Rs/js/jquery.smallslider.js" ></script>
<link rel= "stylesheet" type= "Text/css" href= "rs/css/smallslider.css" media= "screen"/>
2. The HTML structure is as follows:
1), the outermost layer must be a DIV element, this div needs to specify a class: Smallslider.
2), the HTML structure within the DIV is a UL tag, the UL tag is Li tag, Li inside is a tag, A is IMG tag, namely: div--->ul--->li--->a--->img.
3), the ALT attribute of the IMG tag is the text content of the caption that is displayed, so there must be.
3, initialize the Carousel diagram:

<script type= "Text/javascript" >$ (document). Ready (function () {$ (function () {$ (' #flashbox '). Smallslider ();}); </script>

One thing to note is that you have to fix the height and width of your calling element. In general, the height and width of the switch is fixed, if you have a different size of the picture, the switch will be difficult to see.
If you have good suggestions, please email me:[email protected] (please change # to @)



Parameter list:
Time the - $
Parameters Default Value Description
Switching interval, per millisecond, 1 sec =1000 ms
AutoStart true Whether to start playback automatically
Onimagestop false Do you want to stop playing when the mouse is placed on the picture
Switchmode ' hover ' Image toggle mode, click to toggle, hover to switch when mouse moves to button
Switcheffect ' FadeOut ' Toggle effects, Fadeout,ease,none,
Switchpath ' left ' The direction of the switch, optional values are: up, left, that is, up.
Switchease ' Easeoutquart ' Available when Switcheffect is ' ease '. The list of optional values is as follows: ["Easeinquad", "Easeoutquad", "Easeinoutquad", "Easeincubic", "Easeoutcubic", "Easeinoutcubic", "Easeinquart "," Easeoutquart "," Easeinoutquart "," Easeinquint "," Easeoutquint "," Easeinoutquint "," Easeinsine "," Easeoutsine "," Easeinoutsine "," Easeinexpo "," Easeoutexpo "," Easeinoutexpo "," Easeincirc "," Easeoutcirc "," Easeinoutcirc "," Easeinelastic "," easeoutelastic "," easeinoutelastic "," Easeinback "," Easeoutback "," Easeinoutback "," EaseInBounce "," Easeoutbounce "," easeinoutbounce "], the difference between the various switching modes is not very large, interested can be tested individually
Switchtime Switching time, per millisecond, 1 sec =1000 ms
Actiongap Mouse trigger delay, per millisecond
buttonposition ' Rightbottom ' The button position represents a total of four values: Lefttop,leftbottom,righttop,rightbottom
Buttonoffsetx Ten The horizontal direction of the button offset position, pointing to the center of how much to move, here is the value, without PX
buttonoffsety 4 The vertical direction of the button offset position, pointing to the center of how much to move, here is the value, without PX
Buttonspace 4 The interval between buttons is pixel, but do not add px
Showtext true Whether the caption is displayed, or if it is not displayed, only the button is displayed
showbuttons true Whether to display the button, default display
Textlink true Whether to add a link to the displayed caption, or false to display only the title, the title is not clicked
Textswitch 0 Whether the caption is active or not, if 0 does not move, 1 titles move, 2 titles and backgrounds move together.
textposition "' The position of the title bar, default is empty, that is, the position of the button is consistent with the value top, bottom
textAlign ' Center ' Title bar when top or bottom, valid, left, center, right

Smallslider Picture Carousel plugin Handy Picture plugin

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.