
具体代码如下
html代码:
<div id="slideshowHolder"><img src="img/1.jpg" /><img src="img/2.jpg" /><img src="img/3.jpg" /></div>css代码:
.ft-prev, .ft-next {background-color: #000;padding: 0 10px;color:#fff;}js代码: $(document).ready(function () {$("#slideshowHolder").jqFancyTransitions({effect: "", // wave, zipper, curtainwidth: 500, // width of panelheight: 700, // height of panelstrips: 20, // number of stripsdelay: 5000, // delay between images in msstripDelay: 50, // delay beetwen strips in mstitleOpacity: 0.7, // opacity of titletitleSpeed: 1000, // speed of title appereance in msposition: "alternate", // top, bottom, alternate, curtaindirection: "fountainAlternate", // left, right, alternate, random, fountain, fountainAlternatenavigation: true, // prev and next navigation buttonslinks: true // show images as links});});以上就是js实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。