ie下实现屏幕右下角小广告通知

原创 15342886500 随笔 javascript 186阅读 2018-01-17 14:53:20 举报

var url;
var cw=document.documentElement.clientWidth-310;
var ch=document.documentElement.clientHeight+100;
var win=window.open(url, 'newwindow', 'height=200, width=300, top='+ch+', left='+cw+', toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no');
var h=0;
var timer=setInterval(function () {
h++;
win.moveTo(cw,ch-h);
if(h>=255){
clearInterval(timer)
}
},5);

评论 ( 0 )
最新评论
暂无评论

赶紧努力消灭 0 回复