PHOTOSLIDER-HTML5 Native JS Mobile development Carousel Map-Photo album Slide plugin

Source: Internet
Author: User

Simple Mobile Image slide Switch Browse plugin

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 section:

<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 initialization section:

window.onload=function() {photoslide ({wrap:document.getElementById (' photo '),//  Outermost container true,// set Seamless loop AutoPlay:true,// Auto -Carousel autotime:4000 ,/// carousel interval pagination:true// point status list });

Complete Example:

<! DOCTYPE html>Document.onreadystatechange=subsomething;functionsubsomething () {if(Document.readystate = = ' complete ') {setTimeout (function(){varLoad=document.getelementbyid (' Loading '); Load.style.opacity=0;d Ocument.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>

Click Online Preview

PHOTOSLIDER-HTML5 Native JS Mobile development Carousel Map-Photo album Slide 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.