广告弹出框

window.onload = function(){
    var fdiv = document.getElementById("filldiv");
    var percent = document.getElementById("percent");
    var timer = setInterval(function(){
        fdiv.style.width = parseInt(getStyle(fdiv,"width") ) + 1 + "px";
        if(fdiv.style.width == "200px") {
            clearInterval(timer);
        }
    },50);
}
原文地址:https://www.cnblogs.com/tis100204/p/10310100.html