js实现右下角窗口弹出窗口效果 时间:2020-05-12 人气:0 右下角弹窗效果练习 by 阿会楠 <script language="JavaScript" type="text/javascript"> function $(obj){ return document.getElementById(obj); } function pop(obj){ var h = parseInt($("popDiv").currentStyle.height); $("popDiv").style.height = (h + obj) + "px"; if(parseInt($("popDiv").style.height) < 2){ window.clearInterval(timer); $("popDiv").style.display = "none"; } if(parseInt($("popDiv").style.height) >= 200){ window.clearInterval(timer); } } var timer; function runtimer(obj){ timer = window.setInterval(function(){pop(obj)},10); } window.onload = function(){ runtimer(2); } </script> × [Ctrl+A 全选 注:如需引入外部Js需刷新才能执行] 加载全部内容