js网页右下角提示框实例(2)

this.eMsg.style.top = parseInt(document.body.scrollTop, 10) + docHeight + 10;
        this.eMsg.style.left = parseInt(document.body.scrollLeft, 10) + docWidth - divWidth;
        this.eMsg.style.visibility = "visible";

var _this = this;
        this.objTimer = window.setInterval(function() { _this.moveDiv(_this); }, 10);
    }
}

var msgTip = new messageTip({ name: 'eMeng' });
window.onload = function() { msgTip.show(); };
window.onresize = function() { msgTip.rePosition(msgTip); };

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wgsdfw.html