photoslider-Native JS Mobile development Carousel diagram, album slide plugin

Source: Internet
Author: User

For more information, please click here.

Online Preview Download Now

How to use: refer to CSS files and JS files respectively such as: <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‘),//最外层容器 loop: true,//设置无缝循环 autoPlay:true,//自动轮播 autoTime:4000,//轮播时间间隔 pagination:true //点状态列表 }); } Complete Example:

<! DOCTYPE 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>

Phone preview effect scan QR code:

Online Preview Download Now

For more information on HTML5 Mobile, click

photoslider-Native JS Mobile development Carousel diagram, album slide plugin

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.