//funciones pagina ppal function startSlide () { setInterval(ChangeImagePpal,3000); } let indiceLp = 0; let imagenesLp = ["Tubos2.png","Walking.png","GenteReunida.png"]; function ChangeImagePpal () { //let srcImg = document.getElementById("lp").getAttribute("src"); if (indiceLp==2) indiceLp = -1; indiceLp += 1; let newImage = "images/" + imagenesLp[indiceLp]; //document.getElementById("result").innerHTML=newImage; document.getElementById("lp").setAttribute("src",newImage); }