PhotoSlider-native js mobile development carousel image, album slide plug-in, photoslider-js

Source: Internet
Author: User

PhotoSlider-native js mobile development carousel image, album slide plug-in, photoslider-js

For details, click

Online Preview download now

Usage: Reference css files and js files respectively, for example: <link rel="stylesheet" type="text/css" href="css/photoSlider.min.css" /> <script src="js/photoSlider.min.js" type="text/javascript" charset="utf-8"></script> Html: <li><a href="http://www.j--d.com"></a></li> <li><a href="http://www.j--d.com"></a></li> <li><a href="http://www.j--d.com"></a></li> Javascript: Window. onload = function () {photoSlide ({wrap: document. getElementById ('photo'), // The outermost container loop: true, // set the seamless loop autoPlay: true, // automatic carousel autoTime: 4000, // The carousel interval pagination: true // vertex Status List });} Complete example:

<! DOCTYPE html>

</Html>

<Script src = "js/photoSlider. min. js "type =" text/javascript "charset =" UTF-8 "> </script> <script type =" text/javascript "> document. onreadystatechange = subSomething; function subSomething () {if (document. readyState = 'complete') {setTimeout (function () {var load = document. getElementById ('loading'); load. style. opacity = 0; document. getElementById ('pic-view '). setAttribute ('class', 'pic-view show'); load. remove () ;}, 500) ;}} window. onload = function () {photoSlide ({wrap: document. getElementById ('photo '), loop: true, autoPlay: true, autoTime: 4000, pagination: true}) ;}</script>

Please scan the QR code for the mobile phone preview effect: Online Preview download now

For more information on html5 mobile phones, click

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.