 
						一、引入jQuery和该插件<
| 1 2 | <scripttsrc="js/commentImg.js"></scriptt></code> | 
二、html
| 1 2 3 4 5 6 7 8 9 10 11 12 13 | <divclass="tm-m-photos">      <ulclass="tm-m-photos-thumb">        <lidata-src="img/01.png"> <imgsrc="img/01.png"> <bclass="tm-photos-arrow"></b> </li>        <lidata-src="img/02.png"> <imgsrc="img/02.png"> <bclass="tm-photos-arrow"></b> </li>        <lidata-src="img/03.png"> <imgsrc="img/03.png"> <bclass="tm-photos-arrow"></b> </li>        <lidata-src="img/04.png"> <imgsrc="img/04.png"> <bclass="tm-photos-arrow"></b> </li>      </ul>      <divclass="tm-m-photo-viewer">           <imgsrc="img/01.png">         <aclass="tm-m-photo-viewer-navleft"><i></i></a>         <aclass="tm-m-photo-viewer-navright"><i></i></a>     </div></div> | 
三、js
| 1 2 3 4 5 6 7 | $(".tm-m-photos").commentImg({    activeClass: 'tm-current', //缩略图当前状态class,默认'current'         nextButton: '.tm-m-photo-viewer-navright', //向后翻页按钮,默认'.next'        prevButton: '.tm-m-photo-viewer-navleft', //向前翻页按钮,默认'.prev'        imgNavBox: '.tm-m-photos-thumb', //缩略图容器,默认'.photos-thumb'        imgViewBox: '.tm-m-photo-viewer'//浏览图容器,默认'.photo-viewer' }); | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com