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"; }
摘要: PHP常见错误 1、语法错误 Parse error: syntax error, unexpected T_VARIABLE in E:\gstbook\user.php on line 268 一般是少分号,在上一行或者下一行都有可能 Parse error: syntax error, une 阅读全文
posted @ 2017-05-06 11:33 Solomon_xm 阅读(752) 评论(0) 推荐(0) 编辑