오늘은 대한입니다.
sun's longitude:299 39 55.06 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
알파문서
자주 잊어먹거나, 메모해 둘 필요성이 있는 팁이나 문서, 기타 등등
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
98 번 글의 답장글: Re: [javascript] getcookie()
글쓴이: 산이 [홈페이지] 글쓴날: 2005년 04월 06일 06:30:19 수(오전) 조회: 3223

[산이]님이 남기신 글:

>function setcookie(name, value, expire) 
>{ 
>  var date = new Date(); 
>  date.setDate(date.getDate() + expire); 
>  document.cookie = name + '=' + value + '; expires=' + date.toGMTString()+ ';
path=/';
>} 

========================================
// http://members.ozemail.com.au/~dcrombie/cookie3.html

var bikky = document.cookie;

function getCookie(name) // use: getCookie("name")
{
  var index = bikky.indexOf(name + "=");

  if (index == -1) return null;

  index = bikky.indexOf("=", index) + 1; // first character
  var endstr = bikky.indexOf(";", index);

  if (endstr == -1) endstr = bikky.length; // last character

  return unescape(bikky.substring(index, endstr));
}

 
이전글 : [javascript] setcookie()
다음글 : [MySQL] replication for slave  
 from 211.243.181.98
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright 1997-2026. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds