function jb51tuitan(){
if (getCookie( 'jb51popped' )==''){
//실행할 코드 또는 일부 작업
setCookie("jb51popped","ok"); //쿠키를 작성하면 실행되었음을 나타냅니다.
alert("ok");
}
}
jb51tuitan()
function setCookie(name, value)
{
var argv = setCookie.arguments; > var argc = setCookie.arguments.length;
var 만료 = (argc > 2) ? argv[2] : null
if(expires!=null)
{
var LargeExpDate = new Date ();
LargeExpDate.setTime(LargeExpDate.getTime() (expires*1000*3600*24))
}
document.cookie = name "=" escape (value) ((expires == null) ? "" : ("; 만료=" LargeExpDate.toGMTString()))
}
function getCookie(Name)
{
var search = 이름 "
if(document.cookie.length > 0)
{
offset = document.cookie.indexOf(search)
if(offset != -1)
{
offset = search.length
end = document.cookie.indexOf(";", offset)
if(end == -1) end = document.cookie.length
return unescape(document.cookie. 하위 문자열(오프셋, 끝))
.