js代码
<script src="js/jquery.1.9.1.js"></script> <script src="js/jquery.hiSlider.min.js"></script> <script> $('.hiSlider1').hiSlider(); $('.hiSlider2').hiSlider({ isFlexible: true, mode: 'fade', isSupportTouch: false, isShowTitle: false, isShowPage: false, titleAttr: function(curIdx){ return $('img', this).attr('alt'); } }); $('.hiSlider3').hiSlider({ isFlexible: true, isSupportTouch: true, titleAttr: function(curIdx){ return $('img', this).attr('alt'); } }); $('.hiSlider4').hiSlider({ startSlide: 2, direction: 'top' }); </script>