首页
微信
安卓
接口
移动
前端
专题
文档库
工具
网址
§
ITPOW
>>
文档
>>
JavaScript
>>
窗口页面
窗口宽度慢慢变到最大,然后高度变到最大
作者: 来源: 日期:2004-9-30
<script type="text/javascript"> <!-- popwin=window.open("","","width=0,height=0"); currentWidth=0; currentHeight=0; popwin.moveTo(0,0); popwin.resizeTo(currentWidth,currentHeight); maxWidth=screen.width; maxHeight=screen.height; function resize() { if(currentWidth<maxWidth) { currentWidth+=15; popwin.resizeTo(currentWidth,currentHeight); } else if(currentHeight<maxHeight) { currentHeight+=15; popwin.resizeTo(currentWidth,currentHeight); } else clearInterval(timer); } timer=setInterval("resize()",10); --> </script>
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
相关文章
创建于2005年
渝ICP备05010272号-1
电邮:
cftea@126.com
即将跳转...