简单的全屏slide支持链接
XML/HTML Code
- <div class="banner_box">
- <div class="index-banner" id="index-banner">
- <div class="index-banner-scroll">
- <ul>
- <li> <a href="#" target="_blank" style="cursor: pointer;"> <img src="http://freejs.net/demo/561/banner01.jpg"> </a> </li>
- <li> <a href="#" target="_blank" style="cursor: pointer;"> <img src="http://freejs.net/demo/561/banner03.jpg"> </a> </li>
- </ul>
- </div>
- <div class="control"><span class="" style="opacity: 1;"></span><span style="opacity: 1;"></span></div>
- </div>
- </div>
- <div class="btn-group"> <span class="prev">Prev</span> <span class="next">Next</span> </div>
JavaScript Code
- <script>
- $(function() {
- $(".banner_box").slider({
- containerEl: $(".index-banner-scroll"),
- silderContainerEl: $("#index-banner ul"),
- itemEl: $("#index-banner ul li"),
- btnEl: $('.control span'),
- btnContainerEl: $('.control'),
- prev: $(".prev"),
- next: $(".next"),
- index: 0,
- resizeable: true,
- showButton: true
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_562.html