Week 6
Hi all! We're starting on Javascript this week. I'm pretty excited about it actually. Javascript adds a lot of programming-style elements to website development. Variables can be used and items can be programmed to add functionality to your website. For one of the other weeks, we had our slideshow project and the code I borrowed for that relied on some javascript. Here's a sample from that: <script> var slideIndex = 0; showSlides(); function showSlides() { var i; var slides = document.getElementsByClassName("mySlides"); var dots = document.getElementsByClassName("dot"); for (i = 0; i < slides.length; i++) { slides[i].style.display = "none"; } slideIndex++; if (slideIndex > slides.length) {slideIndex = 1} for (i = 0; i < dots.length; i++) { dots[i].className = dots[i].classNa...