bxslider全屏,固定高度焦点图演示
JavaScript Code
- <script>
- // Slideshow
- $(function(){
- $("#sliderbox").hover(function(){
- $("#sliderbox .bx-prev").fadeIn();
- $("#sliderbox .bx-next").fadeIn();
- },function(){
- $("#sliderbox .bx-prev").fadeOut();
- $("#sliderbox .bx-next").fadeOut();
- });
- $('#slideshow').bxSlider({
- mode: 'fade', /*'horizontal', 'vertical'*/
- controls: true,
- nextSelector: '#slider-next',
- prevSelector: '#slider-prev',
- prevText: 'Prev',
- nextText: 'Next',
- auto: true,
- speed: 500,
- pause: 5000,
- pager: true
- });
- });
- </script>
XML/HTML Code
- <div id="sliderbox">
- <div id="slidebanner"><div class="banner-shadow"></div>
- <ul id="slideshow">
- <li><a href="#"><img src="banner01.jpg" alt="" /></a></li>
- <li><a href="#"><img src="banner03.jpg" alt="" /></a></li>
- </ul>
- </div>
- <div class="outside">
- <span id="slider-prev"></span>
- <span id="slider-next"></span>
- </div>
- </div><!-- Slideshow end -->
原文地址:http://www.freejs.net/article_jiaodiantu_561.html