js实现索引图片切换效果
作者:bea
本文实例讲述了js实现索引图片切换效果的代码。分享给大家供大家参考。具体如下: 运行效果截图如下: 具体代码如下 html代码: <div id="slideshowHolder"> <img src="img/1.jpg" /> <img src="img/2.jpg" /> <img src="img/3.jpg" /> </div> css代码: .ft-prev,
本文实例讲述了js实现索引图片切换效果的代码。分享给大家供大家参考。具体如下: 运行效果截图如下:
具体代码如下
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实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。
有用 | 无用
具体代码如下
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实现索引图片切换效果的主要代码,希望对大家动手实现图片切换效果。
有用 | 无用
猜你喜欢
您可能感兴趣的文章:
- nodejs初步体验篇
- jquery实现加载进度条提示效果
- Nodejs初级阶段之express
- 使用jquery实现鼠标滑过弹出更多相关信息层附源码下载
- javascript实现uploadify上传格式以及个数限制
- Jquery 效果使用详解
- JavaScript高级教程5.6之基本包装类型(详细)
- jQuery实现简洁的导航菜单效果
- Bootstrap每天必学之表格
- js 右侧浮动层效果实现代码(跟随滚动)
- JQuery实现简单的图片滑动切换特效
- js实现简单计算器
- javascript实现别踩白块儿小游戏程序
- 解决jquery插件:TypeError:$.browser is undefined报错的方法
- jquery实现select选择框内容左右移动代码分享
- 分享经典的JavaScript开发技巧
- jQuery实现分隔条左右拖动功能
- 超详细的javascript数组方法汇总
- javascript实现动态统计图开发实例