A cópia do código é a seguinte:
<script type = "text/javascript">
var time = 300;
var h = 0;
função addCount ()
{
se (tempo> 0)
{
tempo--;
h = h+5;
}
outro
{
retornar;
}
if (h> 300) // altura
{
retornar;
}
document.getElementById ("ADS"). style.display = "";
document.getElementById ("ADS"). style.Height = h+"px";
setTimeout ("addCount ()", 30);
}
window.onload = function showads ()
{
addCount ();
setTimeout ("nonEads ()", 7000); // eu mesmo ajustei meu tempo de estadia
}
var t = 300;
var n = 300; //Altura
função não -padrinhos ()
{
se (t> 0)
{
T--;
N = n-5;
}
outro
{
retornar;
}
se (n <0)
{
document.getElementById ("ADS"). style.display = "nenhum";
retornar;
}
document.getElementById ("ADS"). style.Height = n+"px";
setTimeout ("nonEads ()", 30);
}
</script>
A cópia do código é a seguinte:
<div style = "margem: 0px automático; largura: 900px; fundo: #369; altura: 300px; cor: #fff" id = "ads"> wulin.com_www.vevb.com </div>