旋转按钮焦点图slide
XML/HTML Code
- <div class="rotating-slideshow" style="margin-top:10px;">
- <div id="slider-main" data-position="1" data-deg="0">
- <div id="slider-btns" class="button">
- <a id="pos1" href="#" class="pos1" data-position="1"></a>
- <a id="pos2" href="#" class="pos2" data-position="4"></a>
- <a id="pos3" href="#" class="pos3" data-position="3"></a>
- <a id="pos4" href="#" class="pos4" data-position="2"></a>
- </div>
- <div class="slider-overlay">
- <div class="active" data-position="1">
- <h3>jQuery </h3>
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum bibendum tincidunt sem. Nulla ipsum lorem, interdum vel tincidunt sit amet, aliquam sit amet lectus. Mauris eu tincidunt sapien. </p>
- </div>
- <div data-position="2">
- <h3>rotatingSlideshow</h3>
- <p>Integer ac libero nec velit rhoncus ultricies ut vel ligula. Sed ullamcorper fermentum ullamcorper. Mauris placerat quam non nunc feugiat, vel sagittis urna iaculis. </p>
- </div>
- <div data-position="3">
- <h3>Plugin</h3>
- <p>Nullam sit amet est iaculis, auctor nunc eu, lobortis justo. Nam tempor quam eget rutrum fringilla. Praesent ut molestie massa.</p>
- </div>
- <div data-position="4">
- <h3>Demo</h3>
- <p>Pellentesque tristique sem ac leo sollicitudin, id luctus ex semper. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae.</p>
- </div>
- </div>
- <img class="spinner-btn" src="images/button.png" alt="">
- <img class="spinner" src="images/slides-overlay.jpg" alt="">
- </div>
- <audio id="slider-sound" preload="auto">
- <source src="sound/sound.mp3">
- This browser does not support the HTML5 audio tag.
- </audio>
- </div>
JavaScript Code
- <script>
- $(document).ready(function(){
- $('.rotating-slideshow').rotatingSlideshow({
- sliderHolder: '#slider-main',
- btnsHolder: '#slider-btns',
- audioHolder: '#slider-sound',
- auto: true,
- autoSpeed: '6000'
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_564.html