메뉴 건너뛰기

조회 수 30922 추천 수 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
번호 제목 날짜 조회 수
37 Effects - SlideUp() 메서드 (슬라이드업) file 2014.10.16 6030
36 Effects - SlideToggle() 메서드 (슬라이드 업/다운) file 2014.10.16 6775
» Effects - Animate() 메서드 (여러가지 효과 동시 처리) file 2014.10.16 30922
34 Effects - Stop() 메서드 (애니메이션 효과 멈추기) file 2014.10.16 6244
33 트리뷰(TreeView) 컨트롤 file 2014.10.16 6750
32 jQuery Ajax - jQuery.load() 메서드 (동적으로 원격 페이지 로드) file 2014.10.16 6447
31 JSON(JavaScript Object Notation) - jQuery Ajax - jQuery.getJSON() 메서드 (비동기적으로 JSON파일 로드) file 2014.10.16 6595
30 jQuery ajax post 요청 text 응답 2014.10.16 6733
29 HTML5 Geolocation (구글 지도에 현위치 표시하기) file 2014.09.04 6858
28 HTML5 Better semantic tags file 2014.09.04 5988
27 HTML5로 게임 만들기 워밍업 file 2014.09.04 6080
26 HTML5 Form 공부하기 -2- file 2014.09.04 6357
25 HTML5 Form 공부하기 -1- file 2014.09.04 5882
24 HTML5 Web Storage -01- file 2014.09.04 5605
23 HTML5 드래그 앤 드롭 하기 Drag and Drop file 2014.09.04 7779
22 HTML5로 나만의 비디오 플레이어 스킨 만들기 -3- JavaScript file 2014.09.04 6321
21 HTML5로 나만의 비디오 플레이어 스킨 만들기 -2- JavaScript file 2014.09.04 6334
20 HTML5로 나만의 비디오 플레이어 스킨 만들기 -1- CSS file 2014.09.04 6484
19 HTML5로 비디오 보여주기 Video Tag file 2014.09.04 7078
18 JavaScript 맛보기 file 2014.09.04 6604
Board Pagination Prev 1 ... 4 5 6 7 8 9 10 11 12 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved