Histórico da Página
...
HTML |
---|
<script> TOTVS_Carousel = { Id: "Carousel1", Container: "divContainer", Time: 0, SlideIndex: 0, Init: function(id, nameOfContainer, time){ this.Id = id; this.Time = time; this.Container = (typeof nameOfContainer === "string") ? document.getElementById(nameOfContainer) : nameOfContainer; this.Build(id, nameOfContainer, time); }, Build: function(id, nameOfContainer, time){ }, ShowSlides: function(){ 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].className.replace(" active", ""); } slides[SlideIndex-1].style.display = "block"; dots[SlideIndex-1].className += " active"; setTimeout(ShowSlides, Time); // Change image every 2 seconds } } TOTVS_Carousel.Init('Carousel1', 'divContainer', 3000); TOTVS_Carousel.ShowSlides(); </script> |
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas