javascript逐漸變大的跳轉窗口

第一頁面:

 

function getwind () {

           newwin = window.open('news.aspx', '奇?跡¡ê發¤¡é生¦¨²', 'left=0,top=0,width=500,height=300');

        

       }

 

第二頁面:

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

    <title></title>

    <script type="text/javascript">

        var id;

        var i =0;

        window.moveTo(0, 0);

        functionmove() {

            i = i + 10;

            if(300 + i >= window.screen.height ) {     

               clearInterval(id);

               window.location('http://www.baidu.com/');

 

           }

           else{

           window.resizeBy(10, 10);

         

       }

   }

         id= setInterval(move, 200);

    </script>

</head>

<body>

    <form id="form1" runat="server">

    <div>

   

    </div>

    </form>

</body>

</html>

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章