메뉴 건너뛰기

조회 수 6225 추천 수 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>

 

 


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

 


[실행결과]

 

 


List of Articles
번호 제목 날짜 조회 수
117 안드로이드 종료 취소 다이얼로그 코드 2015.07.26 6393
116 폰갭 비콘 디텍팅 안될 때 (기본적인건 다 되있어야됨) 2015.07.26 6533
115 안드로이트 비콘 스캐닝시 고려 사항 2015.07.26 6663
114 블루투스 및 비콘 관련 정리 2015.07.26 10829
113 블루투스(Bluetooth) 통신에 대해 알아보자 file 2015.07.26 14049
112 안드로이드 팝업창 만들기(xml 내용 집어넣기) file 2015.07.23 9285
111 안드로이드 스튜디오 gradle error 해결 2015.07.23 6685
110 [안드로이드] 화면추가 버튼 리스너 file 2015.07.22 7681
109 [안드로이드] 페이스북 같은 슬라이드 메뉴 만들기 file 2015.07.21 8213
108 안드로이드 ( Android ) APK 파일 생성하기 file 2015.07.17 7311
107 안드로이드 webview (웹뷰) 개발 #4 - 멀티터치 ( 확대 / 축소 ) 적용 file 2015.07.17 7552
106 안드로이드 webview (웹뷰) 개발 #3 - 초기 로딩화면 (splash) 띄우기 + 아이콘 적용하기 file 2015.07.17 8697
105 안드로이드 webview (웹뷰) 개발 #2 - 파일 첨부 및 플러그인 적용하기 file 2015.07.17 8296
104 안드로이드 webview (웹뷰) 개발 #1 - 웹사이트를 어플로 만들어 보자! file 2015.07.17 8911
103 [안드로이드] 버튼 이벤트 처리하기 file 2015.07.17 7030
102 [안드로이드] 뷰(View)에 여백넣기 file 2015.07.17 7230
101 [안드로이드] 뷰(View)의 너비와 높이 지정하기 file 2015.07.17 7140
100 [안드로이드] 레이아웃의 기본2 file 2015.07.16 7071
99 [안드로이드] 레이아웃의 기본1 file 2015.07.16 6965
98 [안드로이드] Activity에 대해서 file 2015.07.16 6767
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved