    var time = 300;
    var h = 0;
    function addCount()
    {
        if(time>0)
        {
            time--;
            h = h+10;
        }
        else
        {
            return;
        }
        if(h>283)  //高度
        {
            return;
        }
        document.getElementById("wtoads").style.display = "";
        document.getElementById("wtoads").style.height = h+"px";
        setTimeout("addCount()",30); 
    }
    
    window.onload = function showwtoads()
    {
        addCount();
        setTimeout("nonewtoads()",15000); //停留时间自己适当调整
    }

    var T = 960;
    var N = 283; //高度
    function nonewtoads()
    {
        if(T>0)
        {
            T--;
            N = N-10;
        }
        else
        {
            return;
        }
        if(N<0)
        {
            document.getElementById("wtoads").style.display = "none";
            return;
        }
        
        document.getElementById("wtoads").style.height = N+"px";
        setTimeout("nonewtoads()",30); 
    }
document.write('<div id=\"wtoads\" style=\"margin:auto; display:none; top:0px; height:0px; background-color:#fafafa; overflow:hidden; text-align:center;\"><td width=\"960\" align=center><a href="http://top2010.wtobag.com" target="_blank"><img src=\"/images/ad/top10-3.jpg\" width=\"960\" height=\"283\" border=\"0\"></a></td></div>');