如题

解决方案 »

  1.   

    可以判断分辨率,然后用top,left来指定。
      

  2.   

    Response.Write("<script language=javascript> window.open ('MediaPlayer.htm', 'newwindow', 'height=300, width=400, top=110 ,left=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no')</script>");
      

  3.   

    弹出窗口居中
    function winopenAppication()
    {
    var cwidth=414;  //弹出窗口宽度
    var cheight=200; //弹出窗口高度
            var curl="http://www.abc.com";        //弹出窗口URL地址
    var cleft;
    var ctop;
    cleft=(screen.availWidth-cwidth)*.5;
    ctop=(screen.availHeight-cheight)*.5;
    window.open(curl,\'\',\'width=\'+cwidth+\',height=\'+cheight+\',scrollbar=no,resizable=no,left=\'+cleft+\',top=\'+ctop)
    }
      

  4.   

    leiyingw(小雷) 
    screen.availWidth 和 screen.availHeight
    不起作用
      

  5.   

    Response.Write("<script language=javascript>var a=window.open (url,features,property);
    a.moveTo(横坐标,纵坐标);</script>");
      

  6.   

    我是想将弹出窗口居中,现在是要根据显示器分辨率计算横坐标和纵坐标,不过screen.availWidth 和 screen.availHeight
    不起作用,该用什么语句取分辨率?
      

  7.   

    先定义好要弹出窗口的宽度,高度。然后使用(screen.Width-窗口.宽度)/2,(screen.Height-窗口.高度)/2
      

  8.   

    screen.availWidth 和 screen.availHeight 可以。