带放大镜功能的jQuery轮播图
XML/HTML Code
- <div id="thumbs">
- <div id="nav-left-thumbs"><</div>
- <div id="pics-thumbs">
- <img src="nature1.jpg" alt="Nature1" />
- <img src="nature2.png" alt="Nature2" />
- <img src="nature3.png" alt="Nature3" />
- <img src="nature4.png" alt="Nature4" />
- <img src="nature3.png" alt="Nature5" />
- <img src="nature1.jpg" alt="Nature1" />
- <img src="nature2.png" alt="Nature2" />
- <img src="nature3.png" alt="Nature3" />
- <img src="nature4.png" alt="Nature4" />
- </div>
- <div id="nav-right-thumbs">></div>
- </div>
JavaScript Code
- <script>
- $(document).ready(function() {
- $('#view').setZoomPicture({
- thumbsContainer: '#pics-thumbs',
- prevContainer: '#nav-left-thumbs',
- nextContainer: '#nav-right-thumbs',
- zoomContainer: '#zoom',
- zoomLevel: 2,
- loadMsg: 'Chargement...'
- });
- });
- </script>
原文地址:http://www.freejs.net/article_jiaodiantu_658.html