1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<html> <head> <title>°ú¼¼¿Í ¸é¼¼°£ ¼öÁ¤ºÒ°¡ ¾È³»</title> <style> body, div, p{ padding:0; margin:0; } body{ background:#efefef; } div, form{ width:479px; text-align:center; } div p label{ font-size:13px; } label, input[type=button]{ cursor:pointer; } </style> <script language='javascript' src="http://mjsoft.co/html/millennium/js/jquery-1.7.2.min.js"></script> </head>
<body>
<div><img src="easynotice4.gif" alt="ERR011 ¿À·ù ¹ß»ý"></div>
<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(){ var UserAgent = navigator.userAgent;
//alert(UserAgent); return; if (document.cnjform.notice.checked ){ // Æû³×ÀÓ cnjform Àº µ¿ÀÏÇØ¾ß ÇÕ´Ï´Ù. setCookie("news2", "no" , 1); // ºÎ¸ðâ¿¡¼ ÁöÁ¤ÇÑ ÄíŰ³×ÀÓ°ú ÀÏÄ¡ ÇØ¾ß ÇÕ´Ï´Ù. $.get("ajax.cookie_set.php?parm=news2&val=no&day=1",function(rtn){ }); } if (document.cnjform.notice2.checked ){ // Æû³×ÀÓ cnjform Àº µ¿ÀÏÇØ¾ß ÇÕ´Ï´Ù. setCookie("news3", "no" , 30); // ºÎ¸ðâ¿¡¼ ÁöÁ¤ÇÑ ÄíŰ³×ÀÓ°ú ÀÏÄ¡ ÇØ¾ß ÇÕ´Ï´Ù. $.get("ajax.cookie_set.php?parm=news3&val=no&day=30",function(rtn){ }); } top.close(); } $(function(){ if('<?=$_COOKIE['news2'];?>'=='no' || '<?=$_COOKIE['news3'];?>'=='no'){ window.close(); } }); </script> <form name="cnjform"> <div id="â´Ý±â" style="width:479px; height:38px; position:absolute; left:0px; top:390px ; z-index:1;"> <p> <input type="checkbox" name="notice" id="oneday"><label for="oneday">ÇϷ絿¾È ÀÌ Ã¢À» ¿Áö ¾Ê±â</label> <input type="checkbox" name="notice2" id="day30"><label for="day30">30Àϰ£ ÀÌ Ã¢À» ¿Áö ¾Ê±â</label> <input type="button" value="â´Ý±â" onClick="closeWin()"></p> </div> </form> <?//print_r($_COOKIE);?> </body> </html>
|