COMO HACER QUE APAREZCA UN DIV EN 10 SEGUNDOS
Publicado por LUIS ANGEL (1 intervención) el 05/08/2015 21:43:08
HOLA COMO LE HAGO PARA HACER QUE UN DIV APAREZCA DESPUES DE UN CONTADOR DE 10 S
Valora esta pregunta


0
<style>
#este{
display:none;
}
</style>
<div id="este" ></div>
<script>
$(document).ready(function () {
$("#este").fadeIn().delay(10000);
</script>
<div id="este">Hola</div>
<span id="timer"></span>
#este {
background: #000;
padding: 10px;
color: #fff;
}
$("#este").hide();
$("#este").delay(10000).show(600);
//Aqui empieza el Contador en SEG
var count=10;
var counter=setInterval(timer, 1000);
function timer()
{
count=count-1;
if (count <= 0)
{
clearInterval(counter);
return;
}
document.getElementById("timer").innerHTML=count + " secs";
}