메뉴 건너뛰기

조회 수 6781 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄 첨부

 

[Stop.htm]

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

 

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

<head>

    <title>애니메이션 효과 멈추기</title>

    <style type="text/css">

        div {

            position: absolute; background-color:#abc; left: 0px; top:50px;

            width: 60px; height: 60px; margin: 5px;

        }

    </style>

    <script src="../js/jquery-1.3.2-vsdoc2.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function() {

            // Start animation

            $("#go").click(function() {

                $(".block").animate({ left: '+=100px', top: '+=100px' }, 2000);

            });

            // Stop animation when button is clicked

            $("#stop").click(function() {

                $(".block").stop();

            });

            // Start animation in the opposite direction

            $("#back").click(function() {

                $(".block").animate({ left: '-=100px', top: '-=100px' }, 2000);

            });

        }); 

    </script>

</head>

<body>

    <button id="go">Go</button>

    <button id="stop">STOP!</button>

    <button id="back">Back</button>

    <div class="block"></div>

</body>

</html>

 

 


-------------------------------------------------------------------------------------

 


[실행결과]

 

 


  1. Effects - SlideUp() 메서드 (슬라이드업)

    Date2014.10.16 Views6662
    Read More
  2. Effects - SlideToggle() 메서드 (슬라이드 업/다운)

    Date2014.10.16 Views7412
    Read More
  3. Effects - Animate() 메서드 (여러가지 효과 동시 처리)

    Date2014.10.16 Views31895
    Read More
  4. Effects - Stop() 메서드 (애니메이션 효과 멈추기)

    Date2014.10.16 Views6781
    Read More
  5. 트리뷰(TreeView) 컨트롤

    Date2014.10.16 Views7443
    Read More
  6. jQuery Ajax - jQuery.load() 메서드 (동적으로 원격 페이지 로드)

    Date2014.10.16 Views7091
    Read More
  7. JSON(JavaScript Object Notation) - jQuery Ajax - jQuery.getJSON() 메서드 (비동기적으로 JSON파일 로드)

    Date2014.10.16 Views7237
    Read More
  8. jQuery ajax post 요청 text 응답

    Date2014.10.16 Views7382
    Read More
  9. HTML5 Geolocation (구글 지도에 현위치 표시하기)

    Date2014.09.04 Views8287
    Read More
  10. HTML5 Better semantic tags

    Date2014.09.04 Views6624
    Read More
  11. HTML5로 게임 만들기 워밍업

    Date2014.09.04 Views6782
    Read More
  12. HTML5 Form 공부하기 -2-

    Date2014.09.04 Views6980
    Read More
  13. HTML5 Form 공부하기 -1-

    Date2014.09.04 Views6498
    Read More
  14. HTML5 Web Storage -01-

    Date2014.09.04 Views6304
    Read More
  15. HTML5 드래그 앤 드롭 하기 Drag and Drop

    Date2014.09.04 Views8441
    Read More
  16. HTML5로 나만의 비디오 플레이어 스킨 만들기 -3- JavaScript

    Date2014.09.04 Views7018
    Read More
  17. HTML5로 나만의 비디오 플레이어 스킨 만들기 -2- JavaScript

    Date2014.09.04 Views6995
    Read More
  18. HTML5로 나만의 비디오 플레이어 스킨 만들기 -1- CSS

    Date2014.09.04 Views7143
    Read More
  19. HTML5로 비디오 보여주기 Video Tag

    Date2014.09.04 Views7833
    Read More
  20. JavaScript 맛보기

    Date2014.09.04 Views7326
    Read More
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 Next
/ 13

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved