메뉴 건너뛰기

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

[Animate.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">

        #my .hover {

            cursor:pointer;

            background-color:Yellow;

    </style>

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

    <script type="text/javascript">

        $(document).ready(function() {

            $("#moreRegion").hide(); // 기본값으로 숨기기

            $("span.more").click(function() {

                $("#moreRegion").animate({

                    height: '200px', width: 'show', opacity: 'show'

                }, 'slow');

                $(this).hide('fast');

            });

        });

    </script>

</head>

<body>

<div class="region">

안녕하세요. 여기는 본문입니다.

<span class="more">more...</span>

</div>

<div id="moreRegion" style="height:100px;background-color:Yellow;">

또 만나요

</div>

</body>

</html>

 



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

 


[실행결과]

--> 첫 화면.





--> 위의 그림에서 "more..."를 마우스로 클릭하였을 때 화면. (노란색의 "영역"과 '또 만나요' 텍스트가 출력된다.)



 


List of Articles
번호 제목 날짜 조회 수
257 [하이브리드앱] userAgent를 이용해서 웹 / 앱 접속 구분하기 2021.09.30 1293
256 [하이브리드앱] 링크를 웹뷰가 아닌 새로운 브라우저에서 열기 2021.09.30 293
255 Firebase - 푸시알림 보내기 (2) 2021.09.30 768
254 Firebase - 푸시알림 보내기 file 2021.09.30 342
253 앱 번들(Android App Bundle) 만들기 file 2021.09.14 307
252 [Android] 퍼미션 권한체크(테드퍼미션) 2021.09.14 620
251 안드로이드 액티비티 세로고정 2021.09.14 207
250 안드로이드 - 커스텀 폰트(Custom Font) 적용하기 file 2021.04.02 344
249 안드로이드 - RecyclerView의 ViewType 구분하기 file 2021.04.02 936
248 안드로이드 - 리사이클러뷰 (RecyclerView) notifyDataSetChanged 실행 시 깜빡 거리는 현상 2021.04.02 749
247 안드로이드 - 갤러리에서 이미지 가져오기 2021.04.02 666
246 안드로이드 - 플로팅 액션 버튼(Floating Action Button) 사용법 file 2021.04.02 977
245 안드로이드 - Text 입력 이벤트 처리 - TextWatcher file 2021.04.02 557
244 안드로이드 - KeyEvent(키 이벤트) 처리 file 2021.04.02 1217
243 안드로이드 - BottomNavigationView 사용하여 하단 메뉴 만들기 file 2021.04.02 1442
242 안드로이드 - 프래그먼트 (Fragment) 사용하기 file 2021.04.02 486
241 안드로이드 - switch를 사용법 및 구현 file 2021.04.02 1283
240 안드로이드 - RatingBar를 통해 별점주기 file 2021.04.02 853
239 안드로이드 - SharedPreferences에 앱 정보 저장하기 file 2021.04.02 396
238 안드로이드 - 뷰페이저(ViewPager) 구현 file 2021.04.02 324
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved