Js achieves index image switching, and js achieves index Switching
This article describes the code for js to implement index image switching. Share it with you for your reference. The details are as follows:
The running effect is as follows:
The Code is as follows:
Html code:
<div id="slideshowHolder"> </div>
Css code:
.ft-prev, .ft-next { background-color: #000; padding: 0 10px; color:#fff; }
Js Code:
$(document).ready(function () { $('#slideshowHolder').jqFancyTransitions({ effect: '', // wave, zipper, curtain width: 500, // width of panel height: 700, // height of panel strips: 20, // number of strips delay: 5000, // delay between images in ms stripDelay: 50, // delay beetwen strips in ms titleOpacity: 0.7, // opacity of title titleSpeed: 1000, // speed of title appereance in ms position: 'alternate', // top, bottom, alternate, curtain direction: 'fountainAlternate', // left, right, alternate, random, fountain, fountainAlternate navigation: true, // prev and next navigation buttons links: true // show images as links }); });
The above is the main code for js to implement the index image switching effect, and we hope to implement the image switching effect for everyone.