setInnerval(改变窗口到定义位置的代码)

解决方案 »

  1.   

    pWindow = showModelessDialog("components/inspector.htm",[window,curObj],"dialogWidth:395px;dialogHeight:227px;dialogLeft:400;dialogTop:200;help:no;status:no;scroll:no;resizable:yes");
    ..
    ..
    ..
    function sTarResizeCw(width,height){
    pWindow.dialogLeft = pWindow.dialogLeft;//为了保持位置不变,否则默认还原到打开时候的 center=yes
    pWindow.dialogTop = pWindow.dialogTop; //结果失败了,:(  继续中找资料中.....
    pWindow.dialogWidth = width+"px";
    pWindow.dialogHeight = height+"px";
    }
      

  2.   

    pWindow 是返回值,不是窗口对象,因此不能象一般用window.open打开的窗口那样进行操作。模态对话框的属性是在打开时设置的