묻고답하기

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

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

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

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

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

 


// 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 남기남
초보거든요 xe를 public_html에 직접설치 [2] 2009.06.16 by 초보거든요
php1986 ㅠ.ㅠ 꼭좀봐주세요 ㅠ.ㅠ 미치미치.. [10] file 2009.06.16 by php1986
Seony 게시판에 있는 확장변수 기능 중에서 년월일을 월일년으로 바꿀 수 있나요? [1] 2009.06.16 by 백성찬
이혁근 [질문]팝업창 자동으로 한번만 뜨게 하기  
제디슨 확장변수 수정모드에서 $user_lang 사용불가.  
김성근479 아이프레임 문제.  
루미나 이미지 업로드시 엑박현상 file  
권민진415 헉, 이게 크래킹 인가효??ㅜㅜ  
검색량이 게시판 저작권을 게시판 바로 글목록 하단부분에 위치시키는 방법요ㅠㅠ  
박인만 www.도메인주소/xe 에서 /xe 좀 안나게오게 할수 없나요? [2] 2009.06.16 by 정순영726
듀디 DB에 접속해서 게시판을 추가하는 방법...  
미믹스 페이지 모듈에 flv 추가시 화면에 출력되지 않습니다.  
망토 도와 주십쇼.. file  
Diver 원본이미지 나타내려고 합니다.  
나이아드 메뉴가 갑자기 보이지 않고 생성되지 않습니다. file  
칼잇으마 이미지 첨부하면 사라져요? 귀신 곡할 노릇? ㅎㅎ [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