Article Category

분류 전체.. (300)
영어 (9)
관심 (10)
프로젝트 (1)
내 폴더 (182)
Ver 1.0 (94)

 

애용하는 멀티 팝업 소스

---board--------


<script language='javascript'>
<!--
function popupOpen8(){
window.open('../view.php?bid=popup&bno=8','popup_view_8','top=50,left=50,width=50,height=73,resizable=0,scrollbars=no');
}


function GetCookie(name){
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
   
    while(i < clen)
 {
        var j = i + alen;
        if(document.cookie.substring(i, j) == arg)
        return getCookieVal(j)
        i = document.cookie.indexOf(" ", i) + 1
        if(i == 0) break
    }
    return null
}
function getCookieVal(offset){
    var endstr = document.cookie.indexOf(";", offset)
    if(endstr == -1)
        endstr = document.cookie.length
    return unescape(document.cookie.substring(offset, endstr))
}

function expire()
{
if(GetCookie("Notice8") != "done"){
  popupOpen8();
 }
}
window.attachEvent('onload', expire);
//-->
</script>


----------------


---popup--------

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

 
  if (document.checkClose.POP<?=$_GET[no]?>.checked)
  {
     setCookie("POP<?=$_GET[no]?>","done",1);    // 여기서 1을 3으로 늘리면 3일간 표시되지 않음.
  }
   self.close();

}


---------------

Trackback 0 Comment 0
prev 1 ... 49 50 51 52 53 54 55 56 57 ... 300 next