String word = "@@처리할 문자 입력 위치@@";
System.out.println("utf-8 -> euc-kr

 : " + new String(word.getBytes("utf-8"), "euc-kr"));

System.out.println("utf-8 -> ksc5601

 : " + new String(word.getBytes("utf-8"), "ksc5601"));
System.out.println("utf-8 -> x-windows-949

 : " + new String(word.getBytes("utf-8"), "x-windows-949"));
System.out.println("utf-8 -> iso-8859-1

 : " + new String(word.getBytes("utf-8"), "iso-8859-1"));

System.out.println("iso-8859-1 -> euc-kr

 : " + new String(word.getBytes("iso-8859-1"), "euc-kr"));
System.out.println("iso-8859-1 -> ksc5601

 : " + new String(word.getBytes("iso-8859-1"), "ksc5601"));
System.out.println("iso-8859-1 -> x-windows-949

 : " + new String(word.getBytes("iso-8859-1"), "x-windows-949"));
System.out.println("iso-8859-1 -> utf-8 

 : " + new String(word.getBytes("iso-8859-1"), "utf-8"));

System.out.println("euc-kr -> utf-8

 : " + new String(word.getBytes("euc-kr"), "utf-8"));
System.out.println("euc-kr -> ksc5601

 : " + new String(word.getBytes("euc-kr"), "ksc5601"));
System.out.println("euc-kr -> x-windows-949 

 : " + new String(word.getBytes("euc-kr"), "x-windows-949"));
System.out.println("euc-kr -> iso-8859-1

 : " + new String(word.getBytes("euc-kr"), "iso-8859-1"));

System.out.println("ksc5601 -> euc-kr

 : " + new String(word.getBytes("ksc5601"), "euc-kr"));
System.out.println("ksc5601 -> utf-8

 : " + new String(word.getBytes("ksc5601"), "utf-8"));
System.out.println("ksc5601 -> x-windows-949

 : " + new String(word.getBytes("ksc5601"), "x-windows-949"));
System.out.println("ksc5601 -> iso-8859-1

 : " + new String(word.getBytes("ksc5601"), "iso-8859-1"));

System.out.println("x-windows-949 -> euc-kr

 : " + new String(word.getBytes("x-windows-949"), "euc-kr"));
System.out.println("x-windows-949 -> utf-8

 : " + new String(word.getBytes("x-windows-949"), "utf-8"));
System.out.println("x-windows-949 -> ksc5601

 : " + new String(word.getBytes("x-windows-949"), "ksc5601"));
System.out.println("x-windows-949 -> iso-8859-1

 : " + new String(word.getBytes("x-windows-949"), "iso-8859-1"));

ㅡㅡㅡㅡㅡㅡ중략 ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

</head>

<style type="text/css">

*{margin:0 auto;}

#imgmap{margin:0 auto; width:646px;}

</style>

<div id = "imgmap">

<img src="imgmap.gif" alt="imgmap.gif" usemap="#001" border="0">

<map name="Map" id="Map">

 <area shape="rect" coords="X1, Y1, X2, Y2" href="/클릭시 보낼 경로" >

</map>

</div>

</body>

</html>

ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

클릭 범위 지정 시 X1, Y1 위치의 점부터  X2, Y2 의 지점까지 

선택한 shape 모양rect(사각형), circle(원형), poly(다각형) )으로 범위가 설정됨 


$("input:radio[name=A_NAME]").change(function() {

if($("#A_NAME:checked").val() == "Y"){

$('input:radio[name=B_NAME]').prop("disabled", false);

} else if($("#A_NAME:checked").val() == "N"){

$('input:radio[name=B_NAME]').prop("disabled", true);

}

});

// A_NAME 이라는 id 인가 name 값인 라디오 버튼의 값이 변경될 때
// 변경된 값이 Y 일 경우 B_NAME 버튼을 disabled 활성화
// 변경된 값이 N 일 경우 B_NAME 버튼을 disabled 활성화
// B_NAME 이라는 라디오 버튼의 활성화 

CASE 컬럼명                //  바꾸고자 하는 컬럼을 지정
    WHEN A THEN 'X'       
//  A 값을 X 로 변환됨
    WHEN B THEN 'Y'
           :
    WHEN C THEN 'Z' END  //  변환 종료

별도 타입을 숫자로 지정해 저장해서 뷰페이지나 쿼리문으로 확인해서 볼 떄 사용함

mysql에서 사용함 다른데 사용여부 모름 ㅋ

           

ㅡㅡ자바스크립트 부분ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

//콤마찍기

function comma(str) {

    str = String(str);

    return str.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,');

}

//콤마풀기

function uncomma(str) {

    str = String(str);

    return str.replace(/[^\d]+/g, '');

}

function inputNumberFormat(obj) {

    obj.value = comma(uncomma(obj.value));

}

ㅡㅡinput text 부분ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ

onkeyup="inputNumberFormat(this);"



+ Recent posts