편집 요약 없음 태그: 되돌려진 기여 |
편집 요약 없음 태그: 되돌려진 기여 |
||
53번째 줄: | 53번째 줄: | ||
[[분류:플로라 유니버스]] | [[분류:플로라 유니버스]] | ||
<html><head> | <html><!DOCTYPE html> | ||
<script | <html lang="ko"> | ||
< | <head> | ||
function setCookie( name, value, expiredays ) { | <meta http-equiv="Content-Type" content="text/xhtml+xml;charset=utf-8" /> | ||
var todayDate = new Date(); | <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | ||
<script> | |||
//쿠키설정 | |||
function setCookie( name, value, expiredays ) { | |||
var todayDate = new Date(); | |||
todayDate.setDate( todayDate.getDate() + expiredays ); | |||
document.cookie = name + '=' + escape( value ) + '; path=/; expires=' + todayDate.toGMTString() + ';' | |||
} | } | ||
function | |||
//쿠키 불러오기 | |||
function getCookie(name) | |||
{ | |||
var obj = name + "="; | |||
} | var x = 0; | ||
// | while ( x <= document.cookie.length ) | ||
{ | |||
var y = (x+obj.length); | |||
if ( document.cookie.substring( x, y ) == obj ) | |||
{ | |||
< | if ((endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) | ||
endOfCookie = document.cookie.length; | |||
return unescape( document.cookie.substring( y, endOfCookie ) ); | |||
< | } | ||
x = document.cookie.indexOf( " ", x ) + 1; | |||
if ( x == 0 ) break; | |||
< | } | ||
return ""; | |||
} | |||
//닫기 버튼 클릭시 | |||
function closeWin(key) | |||
{ | |||
</ | if($("#todaycloseyn").prop("checked")) | ||
{ | |||
</ | setCookie('divpop'+key, 'Y' , 1 ); | ||
</ | } | ||
$("#divpop"+key+"").hide(); | |||
} | |||
$(function(){ | |||
if(getCookie("divpop1") !="Y"){ | |||
$("#divpop1").show(); | |||
} | |||
}); | |||
</script> | |||
<style> | |||
.divpop { | |||
position: absolute; left: 395px; top: 190px; z-index: 200; | |||
width:500px; height:500px; border:1px solid black;background-color:yellow;display:none; | |||
} | |||
.title_area {font-weight:bold;text-align:center;width:100%} | |||
.button_area {position:absolute;bottom:0;left:10px;} | |||
</style> | |||
</head> | |||
<body> | |||
<form name="notice_form"> | |||
<div id="divpop1" class="divpop"> | |||
<div class="title_area"><a href="https://evewiki.kr/w/index.php/%ED%8A%B9%EC%88%98:%EB%B9%84%EB%B0%80%ED%88%AC%ED%91%9C/vote/58"><img alt="플로라_제1대관리자선거.png" src="/w/images/c/c9/투표_바로가기.png" style="width: 500px; height: 500px;"></a></div> | |||
<div class="button_area"> | |||
<input type='checkbox' name='chkbox' id='todaycloseyn' value='Y'><div style="display: inline-block; color: #FFF;">오늘 하루 이 창을 열지 않음</div> | |||
<a href='#' onclick="javascript:closeWin(1);"><B><div style="display: inline-block; color: #FFF;">[닫기]</div></B></a> | |||
</div> | |||
</div> | |||
</form> | |||
</body> | |||
</html> |