当前位置:首页 > 网页特效 > 窗口特效 >

jquery图片幻灯片插件特效jquery.slider例子

时间:2014-03-09 22:44 来源:互联网 作者:源码搜藏 收藏 推荐

运行代码 保存代码 复制代码 提示:您可以先修改部分代码再运行,保存代码功能在Firefox下无效。

基于jquery.slider.min.js实现的幻灯片插件特效,花了一些时间整理出来的这种效果,切换的方式比较特别,不是淡入淡出,也不是滑动,是方格状的,不知这种效果叫什么,有兴趣的看下效果,看是不是你也比较喜欢呢。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>jquery图片特效slider插件</title>
<style type="text/css">
@charset "utf-8";
.jquery-slider-wrapper{position:relative;zoom:1;clear:both}
.jquery-slider-slide{position:absolute;padding-bottom:0px;margin:0px;padding-left:0px;width:100%;padding-right:0px;display:none;float:left;padding-top:0px}
.jquery-slider-slide img{border-bottom:0px;border-left:0px;padding-bottom:0px;margin:0px;padding-left:0px;padding-right:0px;border-top:0px;border-right:0px;padding-top:0px}
.jquery-slider-slide-current{z-index:2;display:block}
.jquery-slider-slide-next{z-index:1;display:block}
.jquery-slider-selectors{z-index:3;position:absolute;bottom:10px;display:block;overflow:hidden;right:10px}
.jquery-slider-selector{margin:0px 0px 0px 5px;width:16px;display:inline;background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat 0px -70px;float:left;height:16px}
.jquery-slider-selector-current{background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat -16px -70px}
.jquery-slider-selector span{display:none}
.jquery-slider-control{z-index:4;position:absolute;margin-top:-34px;width:48px;display:none;height:69px;top:50%;cursor:pointer;right:50%;margin-right:-24px}
.jquery-slider-control span{display:none}
.jquery-slider-control-play{background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat -144px 0px}
.jquery-slider-control-pause{background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat -96px 0px}
.jquery-slider-hovered .jquery-slider-control{display:block}
.jquery-slider-navigation{display:block}
.jquery-slider-navigation-prev{z-index:4;position:absolute;margin-top:-34px;width:48px;display:none;background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat 0px 0px;height:69px;top:50%;cursor:pointer;left:0px}
.jquery-slider-navigation-prev span{display:none}
.jquery-slider-navigation-next{z-index:4;position:absolute;margin-top:-34px;width:48px;display:none;background:url(/jscss/demoimg/201402/jquery-slider-theme.png) no-repeat -48px 0px;height:69px;top:50%;cursor:pointer;right:0px}
.jquery-slider-navigation-next span{display:none}
.jquery-slider-hovered .jquery-slider-navigation-prev{display:block}
.jquery-slider-hovered .jquery-slider-navigation-next{display:block}
.jquery-slider-wrapper .caption{position:absolute;padding-bottom:6px;padding-left:10px;bottom:10px;padding-right:10px;background:#333333;color:#ffffff;font-size:13px;padding-top:6px;left:10px}
.jquery-slider-timer{z-index:4;position:absolute;width:100%;bottom:0px;height:3px;color:#000000;left:0px}
.jquery-slider-timer-bar{width:0px;display:inline;background:#000000;float:left;height:3px;opacity:0.5}
.slider{width:900px;height:325px;overflow:hidden;}
</style>
<script type="text/javascript" src="/ajaxjs/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="/jscss/demoimg/201402/jquery.slider.min.js"></script>
<script type="text/javascript">
$(document).ready(function($){
$(".slider").slideshow({
width      : 900,
height     : 325,
transition : 'explode'
});
});
</script>
</head>
<body>
<div class="slider">
<div><img src="/jscss/demoimg/201402/slide_1.jpg" /></div>
<div><img src="/jscss/demoimg/201402/slide_2.jpg" /></div>
<div><img src="/jscss/demoimg/201402/slide_3.jpg" /></div>
<div><img src="/jscss/demoimg/201402/slide_4.jpg" /></div>
</div>
</body>
</html>

由源码搜藏网整理,转载请注明出处https://www.codesocang.com/tx-chuangkou/6599.html

窗口特效下载排行

最新文章