jQuery轻量级响应式幻灯片插件EasyFader,先来看看效果:
部分核心的代码如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>jQuery轻量级响应式幻灯片插件EasyFader演示-默认效果</title>
<link rel="stylesheet" href="css/jquery.easyfader.css">
<style>
body { margin: 0; border-left: 200px solid #ccc;}h1 { margin: 40px auto; font: 32px "Microsoft Yahei"; text-align: center;}.wrap { width: 1000px; margin: 0 auto; }.menu { position: fixed; left: 0; top: 0; bottom: 0; width: 200px; padding-top: 100px; font-family: Consolas,arial,"宋体"; background-color: #ccc; overflow-y: auto;}
.menu a { display: block; height: 40px; margin: 0 0 1px 2px; padding-left: 10px; line-height: 40px; font-size: 14px; color: #333; text-decoration: none;}
.menu a:hover { background-color: #eee;}
.menu .cur { color: #000; background-color: #fff !important;}
</style>
</head><body>
<h1>默认效果</h1><div class="wrap"><div id="dowebok" class="fader"><img class="slide" src="images/img1.jpg"><img class="slide" src="images/img2.jpg"><img class="slide" src="images/img3.jpg"><div class="fader_controls"><div class="page prev" data-target="prev">‹</div><div class="page next" data-target="next">›</div><ul class="pager_list"></ul></div></div>
</div><script src="js/jquery.min.js"></script>
<script src="js/jquery.easyfader.min.js"></script>
<script>
$(function() {$('#dowebok').easyFader();
});
</script><div class="menu"><a class="cur" href="index.html">1、默认效果</a><a href="index2.html">2、回调函数</a><a href="index3.html">3、响应式</a>
</div></body>
</html>
全部代码:jQuery轻量级响应式幻灯片插件EasyFader