不是的, 你这个问题是因为两个window.open函数打开的网页句柄相同,即第二个参数相同.
你用一下这个方法:window.open("login.asp","_blank","fullscreen=1");
 //_blank是一个关键字,指定每张网页都会新开一个窗口
window.open("main.asp","_blank","fullscreen=0");

解决方案 »

  1.   

    Meizz(梅花雨):
    你的方法我试过了,但没用,还是跟之前一样,还有没有更好的方法?
      

  2.   

    window.open("login.asp","","fullscreen=yes");
    window.open("main.asp");
      

  3.   

    index.htm:<HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <meta http-equiv="content-type" content="text/html; charset=gb2312">
    <script>
    <!--
    function openWin(){
    closes.Click();
    //,menubar=no,toolbar=no,location=no,status=no
    var tmp=window.open("Login.asp","","fullscreen=yes")
    tmp.moveTo(Math.ceil((screen.availWidth-382)/2),Math.ceil((screen.availHeight-197)/2))
    tmp.resizeTo(382,197)
    tmp.focus();
    }
    //-->
    </script>
    </HEAD>
    <BODY onload="openWin()" >
    <OBJECT classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 id=closes type=application/x-oleobject VIEWASTEXT>
    <PARAM NAME="Command" VALUE="Close">
    </OBJECT>
    </BODY>
    </HTML>login.asp:
    <%
    option explicit
    Response.Buffer = false
    Response.Expires = 0

    dim u,LoginID,Password,Dialog,isLogin
    LoginID = Request("LoginID")
    Password = Request("Password")
    Dialog = Request("Dialog")
    if Request("send")<>empty then
    set u=server.CreateObject("User.UserClass")
    u.UserLogin LoginID,Password 
    'u.UserLogin Trim(Request("LoginID")),Trim(Request("Password"))
    if u.resultNum = 1 then
    isLogin = "success"
    session("LoginID") = LoginID
    session("Dialog") = Dialog
    else
    isLogin="failed"
    end if
    end if
    set u=nothing
    %>
    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    <link rel=styleSheet type="text/css"  href="ykStyle.css">
    <SCRIPT SRC="PublicJS.js"></SCRIPT>
    <SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
    <!--
    var xpos,ypos
    function startDrag() {
    xpos = event.clientX;
    ypos = event.clientY;
    }function moveWindow() {
    var xmov = event.clientX - xpos;
    var ymov = event.clientY - ypos;
    self.moveBy(xmov,ymov);
    }function on_load() {
    myform.LoginID.focus();
    if ("<%=isLogin%>"=="success") {
    closes.Click();
    //,menubar=no,toolbar=no,location=no,resizable=yes,statu=no
    var tmp = window.open("main.asp?Dialog=<%=Dialog%>&LoginID=<%=LoginID%>","main","menubar=yes")
    tmp.moveTo(0,0)
    tmp.resizeTo(screen.availWidth,screen.availHeight-25)
    tmp.focus()
    }
    if ("<%=isLogin%>"=="failed") alert("輸入密碼不對,請再輸入!")
    }
    //-->
    </SCRIPT>
    </HEAD><BODY scroll=no topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 onselectstart='return false' onload="on_load()">
    <form name=myform method="post" onsubmit="return checkInputParameter()">
    <table class=table border=0 cellpadding=0 cellspacing=0 align=center style="WIDTH: 382px; HEIGHT: 197px" onmousedown=startDrag(); ondrag=moveWindow();>
    <tr>
    <td colspan=2 width=380 height=20 align=right background="..\Image\topBar.jpg" border=0 onselectstart='return false' ondragstart='return false'>
    <IMG src="..\Image\minimize1.gif" onclick="min.Click()" onselectstart='return false' ondrag='return false'>&nbsp;
    <IMG src="..\Image\close1.gif" onclick="closes.Click()" onselectstart='return false' ondrag='return false'>
    </td>
    </tr>

    <tr>
    <td width=227 height=154><IMG src="..\Image\car_icon.jpg" border=0 onselectstart='return false' ></td>
    <td width=154>
    <table border=0 align=center>
    <tr><td align=right>LoginID :</td><td>&nbsp;<input class=text type=text name=LoginID size=15 maxlength=15 ></td></tr>
    <tr><td align=right>Password :</td><td>&nbsp;<input class=text type=password name=Password size=15 maxlength=15></td></tr>
    <tr><td align=right>Language :</td>
    <td>&nbsp;<select name=Dialog style="WIDTH: 80px">
    <option value="" selected>
    <option value="ch">Chinese
    <option value="cht">Taiwan
    <option value="eng">English</option>
    </select></td></tr>
    <tr><td colspan=2 align=middle>
    <input name="reset" class=button type=reset value="Reset" style="WIDTH: 60px" onmouseover="this.className='font'" onmouseout="this.className='button'">&nbsp;
    <input name="send" class=button type=submit value="Submit" style="WIDTH: 60px" onmouseover="this.className='font'" onmouseout="this.className='button'"></td></tr>
    </table>
    </td>
    </tr>
    <tr><td colspan=2 width=380 height=16 align=left  bgcolor=Silver onselectstart='return false'>&nbsp;YiKang Emterprise system &nbsp;&nbsp; Verson: 1.0 &nbsp;&nbsp; Build: 2003-1-18</td></tr>
    </table>
    </form><OBJECT id="min" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT>
    <PARAM name="Command" value="Minimize">
    </OBJECT><OBJECT id="max" type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" VIEWASTEXT>
    <PARAM name="Command" value="Maximize">
    </OBJECT><OBJECT id=closes classid=clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11 type=application/x-oleobject VIEWASTEXT>
    <PARAM NAME="Width" VALUE="370">
    <PARAM NAME="Height" VALUE="212">
    <PARAM NAME="Command" VALUE="Close"></OBJECT>
    </BODY>
    </HTML>以上的回复我都试用,不成功!
    我是这个问题的主人,现在给出代码,希望给予帮助。
      

  4.   

    function openWin(){
    closes.Click();//???????为何在这里Close???
    var tmp=window.open("Login.asp","","fullscreen=yes")
    tmp.moveTo(Math.ceil((screen.availWidth-382)/2),Math.ceil((screen.availHeight-197)/2))
    tmp.resizeTo(382,197)
    tmp.focus();
      

  5.   

    我测试了好长时间, 在已经是 fullscreen=yes 的网页里再用 window.open 怎么都是又新开一个全屏的窗口, 但用<a href=".." target="_blank">的方式可以新开一个正常的窗口
      

  6.   

    将当前窗口最大化代码。:)
    ===========================
    <script language="javascript1.2">
    function MaxTheWindow()
            {
                    self.moveTo(0,0);
                    self.resizeTo(screen.availWidth,screen.availHeight);
            }
    </script>
      

  7.   

    回复人: meizz(梅花雨) ( ) 信誉:341  2003-03-05 09:51:00  得分:0 
    我测试了好长时间, 在已经是 fullscreen=yes 的网页里再用 window.open 怎么都是又新开一个全屏的窗口, 但用<a href=".." target="_blank">的方式可以新开一个正常的窗口IE6.0中(无论是不是sp1),在fullscreen的窗口中,用window.open开的窗口也是全屏,但是6.0以下的就不会。而且,好像有时候target=_blank打开的也会全屏。