블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
반응형

Category

Recent Post

Recent Comment

Archive

2009. 11. 25. 12:18 .Net Project/Jquery 1.3.2
반응형
Table.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>

</head>

<body>

    <table class="tbl" border="1">

        <thead>

            <tr>

                <th>&nbsp;</th>

                <th>제목</th>

                <th>저자</th>

                <th>출간일</th>

                <th>가격</th>

            </tr>

        </thead>

        <tbody>

            <tr>

                <td><img src="../../ProductImages/thumbs/BOOK-01.jpg" /></td>

                <td>쉽게 배우지 않는 ASP.NET 2.0</td>

                <td>김용원</td>

                <td>2008</td>

                <td>20000</td>

            </tr>

            <tr>

                <td><img src="../../ProductImages/thumbs/COM-01.jpg" /></td>

                <td>.NET Bible</td>

                <td>김용원</td>

                <td>2003</td>

                <td>25000</td>

            </tr>

            <tr>

                <td>

                    <img src="../../ProductImages/thumbs/Online-01.jpg" />

                </td>

                <td>

                    정보처리 기능사 실기
                </td>

                <td>

                    김용원
                </td>

                <td>

                    2005

                </td>

                <td>

                    18000

                </td>

            </tr>

        </tbody>

    </table>

</body>

</html> 




반응형
posted by Magic_kit
2009. 11. 25. 12:12 .Net Project/Jquery 1.3.2
반응형
 CheckBoxAllCheck.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>

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

    <script type="text/javascript">

        $(document).ready(function () {

            //[1] 전체 선택 체크 박스 클릭시

            $('#chkAll').click(function () {

                // ul에 포함 되어져 있는 모든 체큽박스를 가져옴

                var $checkboxes = $(this).parents('ul:first').find(':checkbox');

                // chkAll 체크 되어져 있다면 "체크 선택" -> "선택 해제"

                if (this.checked) {

                    $(this).next().text("선택해제"); // <em>텍스트

                    $checkboxes.attr('checked', 'true');
 
               }

                else {

                    $(this).next().text('전체선택');

                    $checkboxes.attr('checked', '');

                }

            });           

        });

    </script>

</head>

<body>

    <ul>

        <li><label><input type="checkbox" id="chkAll" /><em>전체선택em></label></li>

        <li><label><input type="checkbox" id="Checkbox1" />C#</label></li>

        <li><label><input type="checkbox" id="Checkbox2" />ASP.NET</label></li>

        <li><label><input type="checkbox" id="Checkbox3" />Silverlight</label></li>

        <li><label><input type="checkbox" id="Checkbox4" />WPF</label></li>

    </ul>

</body>

</html> 




반응형
posted by Magic_kit
2009. 11. 25. 11:29 .Net Project/Jquery 1.3.2
반응형
 RedPlusPhotoView.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>

    <link href="jquery.redplus.photoview.css" rel="stylesheet" type="text/css" />

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

    <script src="jquery.redplus.photoview.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            // 썸 내일 이미지 개체 리스트에 상세 이미지 출력

            $('#products img').photoview({

                photoElement: '#photo',           // 사진 보여줄 개체

                previousControl: '#prev',         // 이전 버튼 개체

                nextControl: '#next',             // 다음 버튼 개체

                firstControl: '#first',           // 처음 버튼 개체

                lastControl: '#last'              // 마지막 버튼 개체

            });   

        });

    </script>

</head>

<body>

    <h1>상품 상세 보기</h1>

    <div id="products">

        <img src="../ProductImages/thumbs/BOOK-01.jpg" />

        <img src="../ProductImages/thumbs/COM-01.jpg" />

        <img src="../ProductImages/thumbs/HARDWARE-01.jpg" />

        <img src="../ProductImages/thumbs/Online-01.jpg" />

        <img src="../ProductImages/thumbs/SOFTWARE-01.jpg" />

    </div>

    <div id="big">

      <img id="photo" src="" alt="상세 이미지 " />

    </div>

    <div id="navi">

      <button type="button" id="first">처음¨ö</button>

      <button type="button" id="prev">이전</button>

      <button type="button" id="next">다음</button>

      <button type="button" id="last">마지막 </button>

    </div>   

</body>

</html> 




반응형
posted by Magic_kit
2009. 11. 25. 11:15 .Net Project/Jquery 1.3.2
반응형
 Replace.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>

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

    <script type="text/javascript">

        // 함수 확장나만의 메서드 만들기

        // 넘겨온 값 (jQuery)새로운 HTML 개체로 설정

        $.fn.ReplaceWith2010 = function (html) {

            return this.after(html).remove(); // 넘겨운 HTML 대체 

        };

        $.fn.Exec = function (a, b) {

            var r = a + " * " + b + " = " + (a * b); // 계산식 문자열 생성

            return this.empty().append(r); // 지정된 개체의 
           내용을 배우고 문자열을 추가
        }

        $(document).ready(function () {

            $('#btn1').click(function () {

                $('#my').empty();

                $('#my').append("<h3>반갑습니다</h3>");

            });

            $('#btn2').click(function () {

                // 없었던 함수에 메서드가 생성

                $('#my').ReplaceWith2010("<div id='my'><h3>또 만나.</h3></div>");

            });

            $('#calc').Exec(3, 5); // calc 레이어에 "3 * 5 = 15"를 출력하는 함수

        });

    </script>

</head>

<body>

    <input type="button" id="btn1" value="값 변경1 " />

    <input type="button" id="btn2" value="값 변경2" />

    <div id="my">

        <h3>안녕하세요</h3>

    </div>

    <div id="calc"></div>

</body>

</html>




반응형
posted by Magic_kit