var slideIndex = 1; showSlides(slideIndex); function plusSlides(n) { showSlides(slideIndex += n); } function currentSlide(n) { showSlides(slideIndex = n); } function showSlides(n) { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); if (n > slides.length) {slideIndex = 1} if (n < 1) {slideIndex = slides.length} for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].className.replace(" active", ""); } slides[slideIndex-1].style.display = "block"; dots[slideIndex-1].className += " active"; }

阅读排行榜

1 2 3 4 5 ··· 10 下一页
Solomon_xm 2018-07-25 08:49 阅读:6201 评论:0 推荐:0
Solomon_xm 2016-10-11 21:07 阅读:1860 评论:0 推荐:1
Solomon_xm 2017-01-08 18:20 阅读:1603 评论:0 推荐:0
Solomon_xm 2016-09-03 18:40 阅读:1466 评论:0 推荐:0
Solomon_xm 2018-08-11 15:14 阅读:1291 评论:0 推荐:0
1 2 3 4 5 ··· 10 下一页