Function Code for picChange image switching special effects _ javascript skills

Source: Internet
Author: User
The encapsulation function of the picChange image switching special effect. The digital navigation button in the lower right corner is automatically generated based on the image html code.

Scalable encapsulation to facilitate different effects. The source code provides the fade function and the move function.

One-sentence function call to achieve image switching special effects.
PicChange ("id of the image ul list", switching the image method reference, image switching time, and image moving direction );
Use the simplest call method and the most concise html code to implement this commonly used image switching effect.
Example:

Html code:

The Code is as follows:






  • ......



Call method:

The Code is as follows:


// Directly switch results
PicChange ("picChange ");
// Fade out Effect
PicChange ("picChange", fade, 500 );
// Move up
PicChange ("picChange", move, 500, "up ");
// Downward Removal Effect
PicChange ("picChange", move, 500, "down ");
// Remove the effect from the left
PicChange ("picChange", move, 500, "left ");
// Remove to the right
PicChange ("picChange", move, 500, "right ");


See Demo slam here: http://demo.jb51.net/js/picChange/index.html

Http://xiazai.jb51.net/201005/yuanma/picChange.rar "target = _ blank> Packaging
Related Article

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.