var elem = document.getElementById('mySwipe'); window.mySwipe = Swipe(elem, { auto: 3000, continuous: true, callback: function(pos) { var i = bullets.length; while (i--) { bullets[i].className = ' '; } bullets[pos].className = 'on'; } }); var bullets = document.getElementById('position').getElementsByTagName('li');
分享到:百度新首页百度贴吧百度云收藏百度中心百度相册QQ空间新浪微博腾讯微博人人网微信