焦点图,带有模糊效果,网格效果的焦点图
XML/HTML Code
- <div class="row-fluid">
- <div class="pagination-centered">
- <div id="myslider0" class="juicyslider">
- <ul>
- <li><img src="data/0.jpg" alt=""></li>
- <li><img src="data/2.jpg" alt=""></li>
- <li><img src="data/4.jpg" alt=""></li>
- </ul>
- <div class="nav next"></div>
- <div class="nav prev"></div>
- <div class="mask"></div>
- </div>
- </div>
- </div>
- <div class="row-fluid">
- <div class="pagination-centered span4">
- <div id="myslider1" class="juicyslider">
- <ul>
- <li><img src="data/2.jpg" alt=""></li>
- <li><img src="data/3.jpg" alt=""></li>
- <li><img src="data/4.jpg" alt=""></li>
- </ul>
- <div class="nav next"></div>
- <div class="mask"></div>
- </div>
- </div>
- <div class="pagination-centered span4">
- <div id="myslider2" class="juicyslider">
- <ul>
- <li><img src="data/3.jpg" alt=""></li>
- <li><img src="data/4.jpg" alt=""></li>
- <li><img src="data/5.jpg" alt=""></li>
- </ul>
- <div class="nav next"></div>
- <div class="nav prev"></div>
- <div class="mask"></div>
- </div>
- </div>
- </div>
- <div>
- </div>
- <div> <a href="default_settings.html" class="btn btn-success">Default Settings</a> <a href="drop_effect.html" class="btn btn-warning">Drop Effect</a> <a href="puff_effect.html" class="btn btn-success">Puff Effect</a> <a href="contain_mode.html" class="btn btn-warning">Contain Mode</a> <a href="no_autoplay.html" class="btn btn-success">No Autoplay</a> </div>
- </div>
- <br>
- <br>
- <!-- Le javascript
- ================================================== -->
- <!-- Placed at the end of the document so the pages load faster -->
- <script type="text/javascript" src="../../js/jquery-1.9.1.min.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
- <script type="text/javascript" src="js/juicyslider.js"></script>
- <!-- initialize Juicy Slider with a jQuery doc ready -->
- <script type="text/javascript">
- // start to run when document ready
- $(function() {
- $('#myslider0').juicyslider({
- width: '500',
- height: 400,
- mask : 'none',
- autoplay: false,
- shuffle: true,
- });
- $('#myslider1').juicyslider({
- width: '100%',
- height: 200,
- });
- $('#myslider2').juicyslider({
- width: '100%',
- height: 200,
- mask: 'square',
- show: {effect: 'drop', duration: 3000},
- hide: {effect: 'drop', duration: 3000},
- });
- $('#myslider3').juicyslider({
- width: '100%',
- height: 200,
- mask: 'strip',
- show: {effect: 'puff', duration: 3000},
- hide: {effect: 'puff', duration: 3000},
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_185.html