광고나 공지사항 띄울때 다음부터 이창을 띄우지 않기 입니다.

· 10년 전 · 208

<SCRIPT language="JavaScript">
<!--

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

function closeWin()
{
        if ( document.forms[0].Notice.checked )

//만약 새창에서 여러개의 form 을 사용하고 있으면 forms[0] 에서 공지창 안띄우기 form의 순서(0부터 시작)로 고쳐줍니다. 예: forms[4]
 
                setCookie( "Notice", "done" , 1);

        self.close();
}

// -->
</SCRIPT>

</head>


<body bgcolor=lightyellow>
<form>
<input type=CHECKBOX name="Notice" value="">다음부터 공지사항 띄우지 않음
<p>
<a href="javascript:history.onclick=closeWin()">닫기</a>
</form> <input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'>

|
댓글을 작성하시려면 로그인이 필요합니다.

팁게시판

디자인과 관련된 유용한 정보를 공유하세요. 질문은 상단의 QA에서 해주시기 바랍니다.

+
제목 글쓴이 날짜 조회
10년 전 조회 305
10년 전 조회 368
10년 전 조회 272
10년 전 조회 310
10년 전 조회 247
10년 전 조회 517
10년 전 조회 360
10년 전 조회 309
10년 전 조회 313
10년 전 조회 231
10년 전 조회 382
10년 전 조회 287
10년 전 조회 209
10년 전 조회 296
10년 전 조회 444
10년 전 조회 198
10년 전 조회 215
10년 전 조회 208
10년 전 조회 359
10년 전 조회 362
10년 전 조회 428
10년 전 조회 369
10년 전 조회 549
10년 전 조회 446
10년 전 조회 387