Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>타이머와 윈도우창 조절</title>
  6. <script type="text/javascript">
  7. var intervalID=window.setInterval(function()
  8. {
  9. window.moveBy(10,3);
  10. window.moveBy(10,-3);
  11. window.moveBy(10,3);
  12. window.moveBy(10,-3);
  13. },100);
  14.  
  15. setTimeout(function()
  16. {
  17. //타이머 종료
  18. moveTo(300,300);
  19. window.resizeTo(300,200);
  20. window.resizeBy(100,100);
  21. document.body.innerHTML+="<p>11</p>";
  22. document.body.innerHTML+="<p>22"+new Date()+"</p>";
  23. clearInterval(intervalID);
  24. },15000);
  25. </script>
  26. </head>
  27. <body>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement