팝업 공지 쿠키 설정
author 신충수 date 2006-11-26 hit 424 HIT
/*==메인페이지 =======================================
function pop_event(){
  var pop = window.open(\'/popup/system.html\',\'popup_event\',\'scrollbars=no,width=650,height=260,top=0,left=400\');
  pop.focus();
}



function getCookie1( name )
{
  var nameOfCookie = name + \"=\";
  var x = 0;
  while ( x <= document.cookie.length )
  {
  var y = (x+nameOfCookie.length);
  if ( document.cookie.substring( x, y ) == nameOfCookie )
  {
    if ( (endOfCookie=document.cookie.indexOf( \";\", y )) == -1 )
    endOfCookie = document.cookie.length;
    return unescape( document.cookie.substring( y, endOfCookie ) );
  }
  x = document.cookie.indexOf( \" \", x ) + 1;
  if ( x == 0 )
    break;
  }
  return \"\";
}

//== 팝업창 페이지======================================

// 팝업 쿠키 설정

function setCookie( name, value, expiredays )
{
  var todayDate = new Date();
  todayDate.setDate( todayDate.getDate() + expiredays );
  document.cookie = name + \"=\" + escape( value ) + \"; path=/; expires=\" + todayDate.toGMTString() + \";\"
}

function set_popup(){
  if(frm.checkpop.checked){
  setCookie( \"pop_hyena\", \"done\" , 1);
  }

  self.close();
}


*/

<!-- <input type=\"checkbox\" name=\"checkpop\" onclick=\"javascript:set_popup();self.close();\" border=\"0\">오늘 하루 이창을 열지 않음 -->
목록보기
        X  
38  위치고정 배너스크롤  2009-12-23 474
37  비트연산의 응용  2009-11-23 425
36  비트연산으로 다중값 처리하기  2009-11-23 424
35  다른 페이지에서 임의의 스트립트 실행하기  2009-11-23 407
34  웹페이지 소스보기와 드래그가 안 될 경우  2008-02-27 375
33  마우스 오버시 텍스트 링크 부분의 설명을 창으로  2008-02-16 384
 팝업 공지 쿠키 설정  2006-11-26 424
31  새 창 띄우기 옵션 (window.open)  2006-11-25 243
30  스크롤 게시물 (솔로몬닷컴 방식)  2006-05-28 212
29  동적으로 textarea 추가하기  2006-05-26 269
28  강추! 셀렉트 박스 스타일 수정  2006-05-03 261
27  금액에 점찍고 한글 표시하기...  2006-05-03 311
26  마우스 클릭시 창 하단의 링크 주소 감추기  2006-05-03 318
25  팝업창 띄우기 옵션 및 방법  2006-05-02 266
24  주소를 입력받아서 이동하는 스크립트  2006-05-02 256
1 2 3