폼메일 내 달력을 어떻게 다나요?

폼메일 내 달력을 어떻게 다나요?

QA

폼메일 내 달력을 어떻게 다나요?

본문

기존 폼메일 스킨을 받아서 수정하고 있습니다.

상단에 자바스크립트로 달력소스가 있는데, 이 소스로 달력을 표기할 수 있는 방법을 알려주시면 감사하겠습니다. ^^;

참고로 저는 디자이너라서 자바를 잘 모릅니다.

 

상단소스

<script>
$(document).ready(function(){

        /* jquery달력 Start(20120516) */
        $("#datepicker" ).datepicker( $.datepicker.regional[ "ko" ] );
            var clareCalendar = {
                monthNamesShort: ['1월','2월','3월','4월','5월','6월','7월','8월','9월','10월','11월','12월'],
                dayNamesMin: ['일','월','화','수','목','금','토'],
                weekHeader: 'Wk',
                dateFormat: 'yy-mm-dd',
                autoSize: false,
                changeMonth: true,
                changeYear: true,
                showMonthAfterYear: true,
                buttonImageOnly: true,
                buttonText: '달력선택',
                buttonImage: 'http://www.smartadmin.kr/_image/day.png',
                showOn: "both",
                yearRange: '2019:2020',
                nextText: '다음달',
                prevText: '이전달'
            };
        $("#setupdate").datepicker(clareCalendar);
        $("img.ui-datepicker-trigger").attr("style","margin-left:5px;cursor:pointer;display:'none'");
        $("#ui-datepicker-div").hide();
        /* jquery달력 End */
    });
    </script>

 

표기 되는 부분.

<input type="text" id="datepicker frm_input" name="date" value="" style="IME-MODE: active" />

이 질문에 댓글 쓰기 :

답변 3

이 부분을 확인해 보세요

3543907947_1592442433.5643.png

알려주신것은 제가 수정을 할 수 없는 부분이라 ㅠ.ㅜ 다르게 찾다보니 원인을 푸터의 프로그램 소스들과 문제가 있는 부분이라서 그 페이지만 푸터를 따로 작성을 하니 달력이 문제 없이 잘 나왔습니다. 프로그램이 너무 어렵지만 해결해서 다행입니다.  자세히 설명해주셔서 감사합니다.

표기 되는 부분에 id 부분에 

 

<input type="text" id="datepicker" class="frm_input" name="date" value="" style="IME-MODE: active" />

 

로 변경하시면 될것 같습니다.

참고하세요

<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>

 

<script>
    $.datepicker.setDefaults({
        dateFormat: 'yymmdd',
        prevText: '이전 달',
        nextText: '다음 달',
        monthNames: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
        monthNamesShort: ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
        dayNames: ['일', '월', '화', '수', '목', '금', '토'],
        dayNamesShort: ['일', '월', '화', '수', '목', '금', '토'],
        dayNamesMin: ['일', '월', '화', '수', '목', '금', '토'],
        showMonthAfterYear: true,
        yearSuffix: '년'
    });

    $(function() {
        $("#datepicker").datepicker();
    });

</script>

<input type="text" id="datepicker" name="date" value="" style="IME-MODE: active" />

답변을 작성하시기 전에 로그인 해주세요.
전체 0 | RSS
QA 내용 검색
  • 개별 목록 구성 제목 답변작성자조회작성일
  • 질문이 없습니다.

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT