메뉴 건너뛰기

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

 

[FadeInFadeOut.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;

    }

    div { background-color:Silver; height:100px; }

    </style>

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

    <script type="text/javascript">

        $(document).ready(function() {

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

                $("#first").fadeIn('slow'); // 서서히 나타나기

                $('#second').fadeOut('fast'); // 서서히 감추기

            });

        });

    </script>

</head>

<body>

    <input type="button" id="btn" value="페이드 효과 주기" />

    <div id="first" style="display:none;background-color:Yellow;">

    첫번째 영역

    </div>

    <div id="second">

    두번째 영역

    </div>

</body>

</html>

 

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

 


[실행결과]


 






 

 


  1. HTML5로 나만의 비디오 플레이어 스킨 만들기 -2- JavaScript

  2. HTML5로 나만의 비디오 플레이어 스킨 만들기 -3- JavaScript

  3. HTML5 드래그 앤 드롭 하기 Drag and Drop

  4. HTML5 Web Storage -01-

  5. HTML5 Form 공부하기 -1-

  6. HTML5 Form 공부하기 -2-

  7. HTML5로 게임 만들기 워밍업

  8. HTML5 Better semantic tags

  9. HTML5 Geolocation (구글 지도에 현위치 표시하기)

  10. No Image 16Oct
    by
    2014/10/16 Views 6702 

    jQuery ajax post 요청 text 응답

  11. JSON(JavaScript Object Notation) - jQuery Ajax - jQuery.getJSON() 메서드 (비동기적으로 JSON파일 로드)

  12. jQuery Ajax - jQuery.load() 메서드 (동적으로 원격 페이지 로드)

  13. 트리뷰(TreeView) 컨트롤

  14. Effects - Stop() 메서드 (애니메이션 효과 멈추기)

  15. Effects - Animate() 메서드 (여러가지 효과 동시 처리)

  16. Effects - SlideToggle() 메서드 (슬라이드 업/다운)

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

  18. Effects - FadeIn() / FadeOut() 메서드 (서서히 보이기 및 숨기기)

  19. Effects - Show() / Hide() 메서드 (보이기 및 숨기기)

  20. Events - Unbind() 메서드 (이벤트 처리기 해제)

Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved