I'm trying to make one div appear right after the other, but when I put the function, only the first one disappear and the second does not appear.
<script>
function apareceDiv1(){
document.getElementById("est").style.display="block";
}
function mostraHoras(){
var hora = new Date();
document.getElementById("segundos").innerHTML = hora.getSeconds();
}
function apareceDiv2(){
document.getElementById("est2").style.display="block";
}
function fechaDiv1(){
document.getElementById("est").style.display="none";
}
function apareceDiv3(){
document.getElementById("est3").style.display="block";
}
window.onload = function(){
var cronometro = document.getElementById("cro");
var fot = document.getElementById("fotos");
var tabuada = document.getElementById("tab");
setInterval(mostraHoras,1000);
cronometro.onclick = apareceDiv1; mostraHoras;
fot.onclick = fechaDiv1; apareceDiv2;
tabuada.onclick = apareceDiv3;
}
</script>
</head>