La copia del código es la siguiente:
<script type = "text/javaScript">
tiempo var = 300;
var h = 0;
función addcount ()
{
if (tiempo> 0)
{
tiempo--;
H = H+5;
}
demás
{
devolver;
}
if (h> 300) // altura
{
devolver;
}
document.getElementById ("anuncios"). style.display = "";
document.getElementById ("anuncios"). style.height = h+"px";
setTimeOut ("addCount ()", 30);
}
window.onload = function showads ()
{
addCount ();
setTimeout ("noads ()", 7000); // He ajustado mi tiempo de estancia yo mismo
}
var t = 300;
var n = 300; //Altura
function noads ()
{
if (t> 0)
{
T--;
N = n-5;
}
demás
{
devolver;
}
if (n <0)
{
document.getElementById ("anuncios"). style.display = "Ninguno";
devolver;
}
document.getElementById ("anuncios"). style.height = n+"px";
setTimeOut ("noads ()", 30);
}
</script>
La copia del código es la siguiente:
<div style = "margen: 0px Auto; ancho: 900px; fondo: #369; altura: 300px; color: #fff" id = "ads"> wulin.com_www.vevb.com </div>