javascript逐渐变大的跳转窗口

来源:互联网 发布:vue.js中自定义指令 编辑:程序博客网 时间:2024/05/02 02:44

第一页面:

 

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>

 

 

 

 

原创粉丝点击