今天是

爱酷家


当前位置:首页 > 资源收藏 > 特效代码

打开的窗口慢慢变大

收集整理   发布时间:2012-11-10 20:51:00   阅读

打开的窗口慢慢变大

代码:
<script>
<!--
var winheight=100
var winsize=100
var x=5

function openwindow(thelocation){
temploc=thelocation
if (!(window.resizeTo&&document.all)&&!(window.resizeTo&&document.getElementById)){
window.open(thelocation)
return
}
win2=window.open("","","scrollbars")
win2.moveTo(0,0)
win2.resizeTo(100,100)
go2()
}
function go2(){
if (winheight>=screen.availHeight-3)
x=0
win2.resizeBy(5,x)
winheight+=5
winsize+=5
if (winsize>=screen.width-5){
win2.location=temploc
winheight=100
winsize=100
x=5
return
}
setTimeout("go2()",50)
}
//-->
</script>
<p><a href="javascript:openwindow('http://www.ikujia.com')">点这里试试</a>

 



注:⊙如转载本站原创作品,请务必包保留本文地址:

内容: