메뉴 건너뛰기

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

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

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

 

[SlideUp.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 () {

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

                $("#first")

                    .fadeIn('slow')    // 서서히 보이기

                    .slideUp(3000);     // 슬라이드업 : 숨기기

            });

 

        });

    </script>

</head>

<body>

<input type="button" id="btn" value="슬라이드 업" />

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

첫번째 영역

</div>

<div id="second">

두번째 영역

</div>

</body>

</html>

 



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

 


[실행결과]

--> 첫 화면. '슬라이드 업'버튼을 누르기 전의 화면.







--> '슬라이드 업'버튼을 누르면 아래그림에서 노란색의 영역이 차츰 올라간다.(-> SlideUp)





--> 최종화면.


 

List of Articles
번호 제목 날짜 조회 수
237 HTML5로 나만의 비디오 플레이어 스킨 만들기 -2- JavaScript file 2014.09.04 6314
236 HTML5로 나만의 비디오 플레이어 스킨 만들기 -3- JavaScript file 2014.09.04 6294
235 HTML5 드래그 앤 드롭 하기 Drag and Drop file 2014.09.04 7758
234 HTML5 Web Storage -01- file 2014.09.04 5589
233 HTML5 Form 공부하기 -1- file 2014.09.04 5849
232 HTML5 Form 공부하기 -2- file 2014.09.04 6332
231 HTML5로 게임 만들기 워밍업 file 2014.09.04 6066
230 HTML5 Better semantic tags file 2014.09.04 5962
229 HTML5 Geolocation (구글 지도에 현위치 표시하기) file 2014.09.04 6815
228 jQuery ajax post 요청 text 응답 2014.10.16 6713
227 JSON(JavaScript Object Notation) - jQuery Ajax - jQuery.getJSON() 메서드 (비동기적으로 JSON파일 로드) file 2014.10.16 6573
226 jQuery Ajax - jQuery.load() 메서드 (동적으로 원격 페이지 로드) file 2014.10.16 6431
225 트리뷰(TreeView) 컨트롤 file 2014.10.16 6729
224 Effects - Stop() 메서드 (애니메이션 효과 멈추기) file 2014.10.16 6229
223 Effects - Animate() 메서드 (여러가지 효과 동시 처리) file 2014.10.16 30782
222 Effects - SlideToggle() 메서드 (슬라이드 업/다운) file 2014.10.16 6764
» Effects - SlideUp() 메서드 (슬라이드업) file 2014.10.16 6006
220 Effects - FadeIn() / FadeOut() 메서드 (서서히 보이기 및 숨기기) file 2014.10.16 6080
219 Effects - Show() / Hide() 메서드 (보이기 및 숨기기) file 2014.10.16 5964
218 Events - Unbind() 메서드 (이벤트 처리기 해제) file 2014.10.16 5752
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved