Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>타이머와 윈도우창 조절</title>
- <script type="text/javascript">
- var intervalID=window.setInterval(function()
- {
- window.moveBy(10,3);
- window.moveBy(10,-3);
- window.moveBy(10,3);
- window.moveBy(10,-3);
- },100);
- setTimeout(function()
- {
- //타이머 종료
- moveTo(300,300);
- window.resizeTo(300,200);
- window.resizeBy(100,100);
- document.body.innerHTML+="<p>11</p>";
- document.body.innerHTML+="<p>22"+new Date()+"</p>";
- clearInterval(intervalID);
- },15000);
- </script>
- </head>
- <body>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement