87,910
社区成员
发帖
与我相关
我的任务
分享
var x = 10;
var stop_call;
var newfrm;
function create() {
newfrm = window.open("about:blank","newfrm", "width=10,height=" + screen.availHeight);
}
function amplify() {
if(x<=screen.availWidth) {
x=x+50;
newfrm.resizeTo(x,screen.availHeight);
stop_call = setTimeout("amplify()",1000);
}
}
function stop() {
clearTimeout(stop_call);
}
var x = 10;
var stop_call;
var newfrm;
function create() {
newfrm = window.open("","newfrm",style="width: 10; height:screen.availHeight");
}
function amplify() {
if(x<=screen.availWidth) {
x=x+50;
newfrm.resizeTo(x,screen.availHeight);
stop_call = setTimeout("amplify()",1000);
}
}
function stop() {
clearTimeout(stop_call);
}
不能改变窗口的大小;可以用div来模拟窗口;然后改变大小
function amplify()
{
if(x<=screen.availWidth)
{
x=x+50
newfrm.resizeTo(x,screen.availHeight)
}
//setInterval("amplify()",1000)
}