手机
当前位置:查字典教程网 >编程开发 >Javascript教程 >js实现索引图片切换效果
js实现索引图片切换效果
摘要:本文实例讲述了js实现索引图片切换效果的代码。分享给大家供大家参考。具体如下:运行效果截图如下:具体代码如下html代码:css代码:.ft...

本文实例讲述了js实现索引图片切换效果的代码。分享给大家供大家参考。具体如下:

运行效果截图如下:

js实现索引图片切换效果1

具体代码如下

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, 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 }); });

以上就是js实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。

【js实现索引图片切换效果】相关文章:

jQuery实现首页图片淡入淡出效果的方法

基于jQuery插件实现环形图标菜单旋转切换特效

jQuery插件expander实现图片翻转特效

js+html5绘制图片到canvas的方法

jquery实现用户打分评分特效

原生js实现的贪吃蛇网页版游戏完整实例

jQuery实现强制cookie过期方法汇总

js+HTML5实现canvas多种颜色渐变效果的方法

jQuery实现表格行上下移动和置顶效果

onmousewheel event 缩放图片效果

精品推荐
分类导航