생성
function setCookie( cookieName, cookieValue, expireDate )
{
var today = new Date();
today.setDate( today.getDate() + parseInt( expireDate ) );
document.cookie = cookieName + "=" + escape( cookieValue ) + "; path=/; expires=" + today.toGMTString() + ";"
}
setCookie('이름','값',시간);
사용 불러오기
function getCookie( cookieName ){
var search = cookieName + "=";
var cookie = document.cookie;
// 현재 쿠키가 존재할 경우
if( cookie.length > 0 ){
// 해당 쿠키명이 존재하는지 검색한 후 존재하면 위치를 리턴.
startIndex = cookie.indexOf( cookieName );
// 만약 존재한다면
if( startIndex != -1 ){
// 값을 얻어내기 위해 시작 인덱스 조절
startIndex += cookieName.length;
// 값을 얻어내기 위해 종료 인덱스 추출
endIndex = cookie.indexOf( ";", startIndex );
// 만약 종료 인덱스를 못찾게 되면 쿠키 전체길이로 설정
if( endIndex == -1) endIndex = cookie.length;
// 쿠키값을 추출하여 리턴
return unescape( cookie.substring( startIndex + 1, endIndex ) );
} else{ // 쿠키 내에 해당 쿠키가 존재하지 않을 경우
return false;
}
} else { // 쿠키 자체가 없을 경우
return false;
}
}
getCookie('이름);
삭제
function deleteCookie( cookieName )
{
var expireDate = new Date();
//어제 날짜를 쿠키 소멸 날짜로 설정한다.
expireDate.setDate( expireDate.getDate() - 1 );
document.cookie = cookieName + "= ; expires=" + expireDate.toGMTString() + "; path=/";
}
deleteCookie('이름');
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 2630 |
|
15년 전 | 814 | |
| 2629 | 15년 전 | 892 | ||
| 2628 | 15년 전 | 1086 | ||
| 2627 | 15년 전 | 1781 | ||
| 2626 |
angpang
|
15년 전 | 1099 | |
| 2625 |
|
15년 전 | 1187 | |
| 2624 | 15년 전 | 964 | ||
| 2623 | 15년 전 | 906 | ||
| 2622 | 15년 전 | 1281 | ||
| 2621 | 15년 전 | 1739 | ||
| 2620 | 15년 전 | 1016 | ||
| 2619 | 15년 전 | 1354 | ||
| 2618 |
terrorboys
|
15년 전 | 1623 | |
| 2617 |
mummy
|
15년 전 | 978 | |
| 2616 | 15년 전 | 904 | ||
| 2615 |
windday
|
15년 전 | 1057 | |
| 2614 | 15년 전 | 1113 | ||
| 2613 | 15년 전 | 933 | ||
| 2612 | 15년 전 | 1209 | ||
| 2611 | 15년 전 | 1289 | ||
| 2610 | 15년 전 | 1220 | ||
| 2609 | 15년 전 | 3133 | ||
| 2608 |
DiZiNOr
|
15년 전 | 815 | |
| 2607 | 15년 전 | 1364 | ||
| 2606 |
|
15년 전 | 942 | |
| 2605 | 15년 전 | 1760 | ||
| 2604 | 15년 전 | 721 | ||
| 2603 | 15년 전 | 881 | ||
| 2602 |
bitmaster
|
15년 전 | 894 | |
| 2601 | 15년 전 | 901 | ||
| 2600 | 15년 전 | 1635 | ||
| 2599 | 15년 전 | 2935 | ||
| 2598 | 15년 전 | 2020 | ||
| 2597 | 15년 전 | 1930 | ||
| 2596 | 15년 전 | 915 | ||
| 2595 | 15년 전 | 1021 | ||
| 2594 | 15년 전 | 966 | ||
| 2593 |
순천홈페이지
|
15년 전 | 853 | |
| 2592 | 15년 전 | 1144 | ||
| 2591 | 15년 전 | 841 | ||
| 2590 | 15년 전 | 1315 | ||
| 2589 |
dannykim
|
15년 전 | 737 | |
| 2588 |
dannykim
|
15년 전 | 647 | |
| 2587 | 15년 전 | 1531 | ||
| 2586 | 15년 전 | 792 | ||
| 2585 | 15년 전 | 1238 | ||
| 2584 | 15년 전 | 1101 | ||
| 2583 | 15년 전 | 782 | ||
| 2582 | 15년 전 | 801 | ||
| 2581 | 15년 전 | 709 | ||
| 2580 |
|
15년 전 | 689 | |
| 2579 | 15년 전 | 859 | ||
| 2578 | 15년 전 | 1109 | ||
| 2577 | 15년 전 | 2272 | ||
| 2576 |
확실한방법
|
15년 전 | 877 | |
| 2575 | 15년 전 | 964 | ||
| 2574 | 15년 전 | 995 | ||
| 2573 | 15년 전 | 984 | ||
| 2572 | 15년 전 | 1062 | ||
| 2571 |
|
15년 전 | 679 | |
| 2570 | 15년 전 | 1938 | ||
| 2569 |
|
15년 전 | 773 | |
| 2568 | 15년 전 | 1584 | ||
| 2567 | 15년 전 | 738 | ||
| 2566 |
dannykim
|
15년 전 | 753 | |
| 2565 | 15년 전 | 1419 | ||
| 2564 |
기획매니아
|
15년 전 | 1038 | |
| 2563 | 15년 전 | 1324 | ||
| 2562 | 15년 전 | 1622 | ||
| 2561 | 15년 전 | 1260 | ||
| 2560 | 15년 전 | 1347 | ||
| 2559 | 15년 전 | 718 | ||
| 2558 |
|
15년 전 | 2268 | |
| 2557 | 15년 전 | 1011 | ||
| 2556 | 15년 전 | 742 | ||
| 2555 | 15년 전 | 1086 | ||
| 2554 | 15년 전 | 797 | ||
| 2553 | 15년 전 | 2039 | ||
| 2552 | 15년 전 | 1077 | ||
| 2551 | 15년 전 | 905 | ||
| 2550 |
|
15년 전 | 994 | |
| 2549 | 15년 전 | 947 | ||
| 2548 |
|
15년 전 | 961 | |
| 2547 |
|
15년 전 | 1040 | |
| 2546 | 15년 전 | 545 | ||
| 2545 | 15년 전 | 471 | ||
| 2544 | 15년 전 | 437 | ||
| 2543 | 15년 전 | 1138 | ||
| 2542 |
|
15년 전 | 953 | |
| 2541 | 15년 전 | 802 | ||
| 2540 | 15년 전 | 796 | ||
| 2539 | 15년 전 | 1194 | ||
| 2538 | 15년 전 | 3197 | ||
| 2537 | 15년 전 | 1065 | ||
| 2536 |
|
15년 전 | 1866 | |
| 2535 | 15년 전 | 1133 | ||
| 2534 |
|
15년 전 | 954 | |
| 2533 | 15년 전 | 2597 | ||
| 2532 | 15년 전 | 1604 | ||
| 2531 |
|
15년 전 | 2503 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기