묻고답하기

홈페이지를 바꾸려고 하는데요

팝업창 소스를 구해서 적용을하는데 팝업이 걸려있는 게시판 클릭시 계속 뜹니다.

하루에 한번만 뜨게 자동으로 차단하는 방법이 없을까요

인터넷으로 쿠키를 적용하는 방법이 있다는데

아래 소스에 어떻게 적용을 해야하는지요

 


// head사이에 넣을 부분

<script>

var dragapproved=false
var minrestore=0
var initialwidth,initialheight
var ie5=document.all&&document.getElementById
var ns6=document.getElementById&&!document.all

function iecompattest(){
    return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function drag_drop(e){
    if (ie5&&dragapproved&&event.button==1){
        document.getElementById("dwindow").style.left=tempx+event.clientX-offsetx+"px"
        document.getElementById("dwindow").style.top=tempy+event.clientY-offsety+"px"
    }
    else if (ns6&&dragapproved){
        document.getElementById("dwindow").style.left=tempx+e.clientX-offsetx+"px"
        document.getElementById("dwindow").style.top=tempy+e.clientY-offsety+"px"
    }
}

function initializedrag(e){
    offsetx=ie5? event.clientX : e.clientX
    offsety=ie5? event.clientY : e.clientY
    document.getElementById("dwindowcontent").style.display="none" //extra
    tempx=parseInt(document.getElementById("dwindow").style.left)
    tempy=parseInt(document.getElementById("dwindow").style.top)

    dragapproved=true
    document.getElementById("dwindow").onmousemove=drag_drop
}

function loadwindow(url,width,height){
    if (!ie5&&!ns6)
        window.open(url,"","width=width,height=height,scrollbars=1")
    else{
        document.getElementById("dwindow").style.display=''
        document.getElementById("dwindow").style.width=initialwidth=width+"px"
        document.getElementById("dwindow").style.height=initialheight=height+"px"
        document.getElementById("dwindow").style.left="550px"
        document.getElementById("dwindow").style.top=ns6? window.pageYOffset*1+30+"px" : iecompattest().scrollTop*1+30+"px"
        document.getElementById("cframe").src=url
    }
}

function maximize(){
    if (minrestore==0){
        minrestore=1 //maximize window
        document.getElementById("maxname").setAttribute("src","http://jamtingi80.cafe24.com/images/restore.gif")
        document.getElementById("dwindow").style.width=ns6? window.innerWidth-20+"px" : iecompattest().clientWidth+"px"
        document.getElementById("dwindow").style.height=ns6? window.innerHeight-20+"px" : iecompattest().clientHeight+"px"
    }
    else{
        minrestore=0 //restore window
        document.getElementById("maxname").setAttribute("src","http://jamtingi80.cafe24.com/images/max.gif")
        document.getElementById("dwindow").style.width=initialwidth
        document.getElementById("dwindow").style.height=initialheight
    }
    document.getElementById("dwindow").style.left=ns6? window.pageXOffset+"px" : iecompattest().scrollLeft+"px"
    document.getElementById("dwindow").style.top=ns6? window.pageYOffset+"px" : iecompattest().scrollTop+"px"
}

function closeit(){
    document.getElementById("dwindow").style.display="none"
}

function stopdrag(){
    dragapproved=false;
    document.getElementById("dwindow").onmousemove=null;
    document.getElementById("dwindowcontent").style.display="" //extra
}

</script>

 

// body 사이에 넣기 -팝업창 불러오기

<div id="dwindow" style="background-color:rgb(239,239,239); border-width:1px; border-color:rgb(34,34,34); border-style:solid; width:200px; height:200px; position:absolute; left:0px; top:0px; z-index:1; cursor:hand; layer-background-color:rgb(239,239,239); " onMousedown="initializedrag(event)" onMouseup="stopdrag()" onSelectStart="return false">
    <table width=100% cellpadding=3 cellspacing=0 border=0>
<td bgcolor=c0c0c0 style=font-family:tahoma;font-size:8pt;>&nbsp;<B>:: 뚱이와뚱땡이의 최근소식</B></td>
    <td bgcolor=c0c0c0 align=right><img src="http://jamtingi80.cafe24.com/images/max.gif" id="maxname" onClick="maximize()"><img src="http://jamtingi80.cafe24.com/images/close.gif" onClick="closeit()"></td>
    </tr>
    </table>
    <div id="dwindowcontent" style="height:100%;"><iframe id="cframe" src="" width=100% height=100%></iframe></div>
</div>

<script>
if (ns6) window.onload=new Function('loadwindow("http://jamtingi80.cafe24.com/popup.htm",420,470)')
else
    loadwindow("http://jamtingi80.cafe24.com/popup.htm/",420,470)
</script>

<a href="javascript:loadwindow('http://jamtingi80.cafe24.com/popup.htm/',420,470)"></a>

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
칼잇으마 이미지 첨부하면 사라져요? 귀신 곡할 노릇? ㅎㅎ [2] file 2009.06.16 by 마이무라
한꼬마 xe 1.2.3 변수 넘길때 &area=대구 이렇게 넘기면 제대로 못받는 형상  
정현173 로고사이즈 수정하는 방법좀 알려주세요 ㅠㅠ  
나타쿠바라 인용구 작성기능을 쓰는데  
a? 제로보드 로그인할때 오류가 나요  
sungjaeq XE 1.2.3에 있는 통계기능을 쓸수있나요? ㅠㅠ  
투데이 위지윅 에디터에서 HTML편집 권한에 대하여 [1] 2009.06.15 by 투데이
아고라 특정 그룹 회원 출력 위젯 (member_group)관련 질문  
초보에요ㅎㅎ 답변주신님아 들어가도영문판인데;; [11] 2009.06.15 by 초보에요ㅎㅎ
토리세상 마이그레이션 써버 이전후 관리자페이지 첨부파일 관리서 첨부파일 목록이 안뜨네요 [1] 2009.06.15 by 도파돌이
쌍수정 페이지오류시정 file  
초보에요ㅎㅎ 제꺼 영문판인가여?? [1] 2009.06.15 by narawiz
초보에요ㅎㅎ 완전망했어요 [3] 2009.06.15 by 초보에요ㅎㅎ
박노열 첨부파일 버턴이 클릭되지 않습니다 [4] 2009.06.15 by 박노열
박상훈757 layout.html에서 현재 게시판의 속성을 알수있나요? [2] 2009.06.15 by 박상훈757
zzang84 다중확장변수 검색방법 질문드립니다.. [1] 2009.06.15 by 라르게덴
KRB svn에 연결 어떻게 하나요?? [1] 2009.06.15 by narawiz
xechobo 홈피에 쓴 게시글은 어디에 저장되나요?  
홍이맘 최근문서 클릭시 페이지로 연결하는 방법좀...  
reform 이 게시판은 어디건가요? [5] file 2009.06.15 by reform
정다운멘토 같은 계정 내 제로보드 이전 문제... [3] 2009.06.15 by narawiz
망토 1.2.3 으로 버전 업데이트 하는 방법 ㅠ.ㅠ [1] 2009.06.15 by narawiz
하월소년 게시판연결방법좀.. 가르쳐주세요 [1] 2009.06.15 by 아고라
초보거든요 익스프롤러7.0에서는 안되는이유 [5] 2009.06.15 by 백성찬
검색량이 게시판 상단에 불러올 파일에 관한 질문  
자유새당 페이지 오류 질문입니다.  
티파니 확장변수가 입력창에 안나타나네요  
부푸러 XE 카페 운영중이신 분들께 한개만 물어볼께요.. 다들 회원관리 잘되시나요? [1] 2009.06.15 by 차차차
박상훈757 레이아웃에 swf 못올리나요? [1] 2009.06.15 by 백성찬
b게이츠 xe설치 기본포트외에 8080에 설치하려는데요 [7] 2009.06.15 by b게이츠