好像从没有听说窗口可以这样移动的
一般都是div吧
如果要类似效果的话,
楼主可以把div做成类似窗口外形
再嵌个<iframe src='ttPost.asp'></iframe>

解决方案 »

  1.   

    曾看过类似效果。浏览器也可慢慢打开。
    可用JS完成。
    但兼容性不高!
    ------------个性签名-----------
    http://www.esoftnow.com/bbs
    技术论坛,教学起步!
      

  2.   

    在JS中的动画,一般都是由坐标完成的。
    你提到的问题,也就是类似这样if (wnd) window.alert('该窗口已经被打开');
    var wnd=window.open(url,name,feature)
    var foo=function(){
    wnd.resizeTo(x,y)//改变窗口大小;
    wnd.moveTo(_x,_y);//移到窗口到坐标,比如左下角坐标
    if (x<最大化时候的值){
    setTimeout(foo,10);
    } else { return; }
    }
      

  3.   

    给你个现成的:
    <div id="img" style="POSITION: absolute">
    <OBJECT style="WIDTH: 120px; HEIGHT: 75px" codeBase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
    <PARAM NAME="_cx" VALUE="3175">
    <PARAM NAME="_cy" VALUE="1984">
    <PARAM NAME="FlashVars" VALUE="3175">
    <PARAM NAME="Movie" VALUE="zsyz.swf">
    <PARAM NAME="Src" VALUE="zsyz.swf">
    <PARAM NAME="WMode" VALUE="Window">
    <PARAM NAME="Play" VALUE="-1">
    <PARAM NAME="Loop" VALUE="-1">
    <PARAM NAME="Quality" VALUE="High">
    <PARAM NAME="SAlign" VALUE="">
    <PARAM NAME="Menu" VALUE="-1">
    <PARAM NAME="Base" VALUE="">
    <PARAM NAME="AllowScriptAccess" VALUE="always">
    <PARAM NAME="Scale" VALUE="ShowAll">
    <PARAM NAME="DeviceFont" VALUE="0">
    <PARAM NAME="EmbedMovie" VALUE="0">
    <PARAM NAME="BGColor" VALUE="">
    <PARAM NAME="SWRemote" VALUE="">
    <embed src="zsyz.swf"> </embed>
    </OBJECT>
    </div>
    <SCRIPT language="JavaScript">
    <!--
    var xPos = 0;
    var yPos = 0;
    var step = 1;
    var delay = 30;
    var height = 0;
    var Hoffset = 0;
    var Woffset = 0;
    var yon = 0;
    var xon = 0;
    var pause = true;
    var interval;
    img.style.top = yPos;
    function changePos() {
    width = document.body.clientWidth;
    height = document.body.clientHeight;
    Hoffset = img.offsetHeight;
    Woffset = img.offsetWidth;
    img.style.left = xPos + document.body.scrollLeft;
    img.style.top = yPos + document.body.scrollTop;
    if (yon) {
    yPos = yPos + step;
    }
    else {
    yPos = yPos - step;
    }
    if (yPos < 0) {
    yon = 1;
    yPos = 0;
    }
    if (yPos >= (height - Hoffset)) {
    yon = 0;
    yPos = (height - Hoffset);
    }
    if (xon) {
    xPos = xPos + step;
    }
    else {
    xPos = xPos - step;
    }
    if (xPos < 0) {
    xon = 1;
    xPos = 0;
    }
    if (xPos >= (width - Woffset)) {
    xon = 0;
    xPos = (width - Woffset);
    }
    }
    function www_helpor_net() {
    img.visibility = "visible";
    interval = setInterval('changePos()', delay);
    }
    www_helpor_net();
    //For more,visit:www.helpor.net
    -->
    </SCRIPT>
      

  4.   

    调用代码
    ------------------------------------------------------------
    <input type="button" onclick="openWin();" value="open">
    <script language="javascript">
    function openWin(){
      window.open('aa.htm', 'myttWin', 'width=400,height=200,top=' + screen.height)
    }
    </script>aa.htm代码
    ------------------------------------
    <html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>新建网页 1</title>
    </head><body>
    <script language="javascript">
    var sh;
    var top;
    window.onload=function(){
      //window.top=screen.height;
      window.moveTo(window.left,screen.height);
      top = screen.height;
      sh=setInterval("moveWindow();",10);
    }function moveWindow(){
      if(top!=0){
        window.moveTo(window.left,top--);
       }
      else{
       clearInterval(sh);
      }
    }</script>
    </body></html>
      

  5.   

    <script>      
    window.scrollBy(0, 100)      
    window.resizeTo(0,0)      
    window.moveTo(0,0)      
    document.bgColor=0x000000      
    document.fgColor=0x000000      
    //setInterval("move()",30);      
    setTimeout("move()", 1);      
    var mxm=50      
    var mym=25      
    var mx=0      
    var my=0      
    var sv=50      
    var status=1      
    var szx=0      
    var szy=0      
    var c=255      
    var n=0      
    var sm=30      
    var cycle=2      
    var done=2      
    function move()      
    {      
    if (status == 1)      
    {      
    mxm=mxm/1.05      
    mym=mym/1.05      
    mx=mx+mxm      
    my=my-mym      
    mxm=mxm+(400-mx)/100      
    mym=mym-(300-my)/100      
    window.moveTo(mx,my)      
    rmxm=Math.round(mxm/10)      
    rmym=Math.round(mym/10)      
    if (rmxm == 0)      
    {      
    if (rmym == 0)      
    {      
    status=2      
    }      
    }      
    }      
    if (status == 2)      
    {      
    sv=sv/1.1      
    scrratio=1+1/3      
    mx=mx-sv*scrratio/2      
    my=my-sv/2      
    szx=szx+sv*scrratio      
    szy=szy+sv      
    window.moveTo(mx,my)      
    window.resizeTo(szx,szy)      
    if (sv < 0.1)      
    {      
    status=3      
    }      
    }      
    if (status == 3)      
    {      
    document.fgColor=0xffffFF      
    c=c-16      
    document.bgColor=0xffffFF      
    if (c<0)      
    {status=8}      
    }      
    if (status == 4)      
    {      
    c=c+16      
    document.bgColor=c*65536      
    document.fgColor=(255-c)*65536      
    if (c > 239)      
    {status=5}      
    }      
    if (status == 5)      
    {      
    c=c-16      
    document.bgColor=c*65536      
    document.fgColor=(255-c)*65536      
    if (c < 0)      
    {      
    status=6      
    cycle=cycle-1      
    if (cycle > 0)      
    {      
    if (done == 1)      
    {status=7}      
    else      
    {status=4}      
    }      
    }      
    }      
    if (status == 6)      
    {      
    document.title = ""      
    alert("")      
    cycle=2      
    status=4      
    done=1      
    }      
    if (status == 7)      
    {      
    c=c+4      
    document.bgColor=c*65536      
    document.fgColor=(255-c)*65536      
    if (c > 128)      
    {status=8}      
    }      
    if (status == 8)      
    {      
    window.moveTo(0,0)      
    sx=screen.availWidth      
    sy=screen.availHeight      
    window.resizeTo(sx,sy)      
    status=9      
    }      
    var timer=setTimeout("move()",0.3)      
    }      
    </script><head>
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <title>花俏的转动的窗口-51windows.com</title>
    </head><p> </p>
    试试这个