    var time = 400;
    var h = 0;
    function addCount()
    {
        if(time>0)
        {
            time = time-1;
            h = h+100;
        }
        else
        {
            return;
        }
        if(h>400)  //高度
        {
            return;
        }
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = h+"px";
        setTimeout("addCount()",30); 
    }
    
    window.onload = function showAds()
    {
        addCount();
        setTimeout("noneAds()",6000); //停留时间自己适当调整
    }