묻고답하기

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

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

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

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

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

 


// 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 남기남
미믹스 페이지 모듈에 flv 추가시 화면에 출력되지 않습니다.  
듀디 DB에 접속해서 게시판을 추가하는 방법...  
박인만 www.도메인주소/xe 에서 /xe 좀 안나게오게 할수 없나요? [2] 2009.06.16 by 정순영726
검색량이 게시판 저작권을 게시판 바로 글목록 하단부분에 위치시키는 방법요ㅠㅠ  
권민진415 헉, 이게 크래킹 인가효??ㅜㅜ  
루미나 이미지 업로드시 엑박현상 file  
김성근479 아이프레임 문제.  
제디슨 확장변수 수정모드에서 $user_lang 사용불가.  
이혁근 [질문]팝업창 자동으로 한번만 뜨게 하기  
Seony 게시판에 있는 확장변수 기능 중에서 년월일을 월일년으로 바꿀 수 있나요? [1] 2009.06.16 by 백성찬
php1986 ㅠ.ㅠ 꼭좀봐주세요 ㅠ.ㅠ 미치미치.. [10] file 2009.06.16 by php1986
초보거든요 xe를 public_html에 직접설치 [2] 2009.06.16 by 초보거든요
세전 최근게시물 한글이 깨져요~~도와주세요  
사슴사랑 화면 디자인 관련 질문입니다.  
php1986 이거 어떻게 해야하나요?... [2] file 2009.06.16 by 라르게덴
슬픈동화 첨부 이미지 본문 삽입 시 깨짐 현상.. [2] file 2009.06.16 by 슬픈동화
e비전 로고이미지와 한글문자 문제..? [2] file 2009.06.16 by e비전
초딩보믄TG 로그인 상태 유지방법  
자유새당 익스플로에서 페이지가 제대로 다 안나옵니다. [1] 2009.06.16 by 아고라
투혼랑 플래쉬에서 게시물 추출해오기.  
진덕여왕 초기페이지설정- file  
이동욱 접기 기능이 제대로 되지 않네요. [2] 2009.06.16 by 백성찬
TMpage 사진파일 첨부시 먹통 [2] 2009.06.16 by TMpage
천추태후 xe1.2.0 에서 xe 1.2.3 덮어쓰기  
오타왕자 xe->xe 데이타이전 이렇게 힘든가요? ㅠㅠ [1] 2009.06.16 by narawiz
디키리스 관리자페이지의 모든 메뉴버튼이 먹히지 않습니다!! [5] 2009.06.16 by 봉봉이아빠
비니파파 레이아웃 편집시 미리보기에서만 배경이미지 보임. [1] 2009.06.16 by 비니파파
박인만 홈페이지주소/xe/home 라고 쳐야지 열려요.. 그냥 홈페이지 주소만 치고 열릴수없나요? [9] 2009.06.16 by 봉방
오타왕자 밤새 사이트3곳이 해킹됬나봐요!! 여러분은 괴안으신가요?  
yohan666 실시간 접속자를 표시해줄 수 있는 해결책이 있을까요? [2] 2009.06.16 by yohan666