• ÇÁ¸®Ä«¿îÅÍ
  • Ç÷¡½ÃºÏ
  • ÇÁ¸®º¸µå
  • Àü±¤ÆÇ
  • À¥°øºÎ¹æ
  • Ä¿¹Â´ÏƼ
03) °°Àº ºê¶ó¿ìÁ®¿¡¼­ Æ˾÷ ¶ç¿ì±â ¾Ê±â

    (ºÎ¸ðâÀÎ index.htm¿¡ »ðÀÔ _»õ·Î ºê¶ó¿ìÁ®¸¦ ¿­¸é Æ˾÷âÀÌ ¶ä)
<html>
<head>
<title>..</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
<script language="javascript">
<!--
function getCookie(name)
{
var Found = false
var start, end
var i = 0
// cookie ¹®ÀÚ¿­ Àüü¸¦ °Ë»ö
while(i <= document.cookie.length)
{
start = i
end = start + name.length
// name°ú µ¿ÀÏÇÑ ¹®ÀÚ°¡ ÀÖ´Ù¸é
if(document.cookie.substring(start, end) == name)
{
Found = true
break
}
i++
}
// name ¹®ÀÚ¿­À» cookie¿¡¼­ ã¾Ò´Ù¸é
if(Found == true) {
start = end + 1
end = document.cookie.indexOf(";", start)
// ¸¶Áö¸· ºÎºÐÀ̶ó
 ´Â °ÍÀ» ÀǹÌ(¸¶Áö¸·¿¡´Â ";"°¡ ¾ø´Ù)
if(end < start)
end = document.cookie.length
// name¿¡ ÇØ´çÇÏ´Â value°ªÀ» ÃßÃâÇÏ¿© ¸®ÅÏÇÑ´Ù.
return document.cookie.substring(start, end)
}
// ãÁö ¸øÇß´Ù¸é
return ""
}
function openMsgBox()
{
var eventCookie=getCookie("memo");
if (eventCookie != "no")
window.open('Æ˾÷âÆÄÀÏ','_blank','width=300,height=300,top=50,left=150');
//Æ˾÷âÀÇ ÁÖ¼Ò, °°Àº µµ¸ÞÀο¡ ÀÖ¾î¾ß ÇÑ´Ù.
}
openMsgBox();
//-->
</script>

</head>
<body>
</body>
</html>  


¢º
(Æ˾÷âÀÎ pop.htm¿¡ »ðÀÔ)
<html>
<head>
<title></title>
<head>
<script language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
//°°Àº â¿¡¼­¸¸ ¾È¶ç¿ò.
//expiredays °ªÀº »ó°ü¾øÀ½.
document.cookie = name + "=" + escape( value ) + "; path=/;";
}

function closeWin()
{
if ( document.myform.event.checked )
setCookie("memo", "no" , 1); // 1ÀÏ °£ ÄíÅ°Àû¿ë
}
//-->
</script>

</head>
<body onunload="closeWin()">
<form name="myform">
<input type="checkbox" name="event">´ÙÀ½ºÎÅÍ ÀÌ Ã¢À» ¿­Áö¾ÊÀ½
<input type=button value="´Ý±â" onclick="self.close()">
</form>

</body>
</html>

³»¾Ë FREECOUNT.NET ÇÁÄ«³Ý »ý±ä³¯ 2003.12.20 Ȩ | Ä«¿îÅÍ | Ç÷¡½ÃºÏ | ÇÁ¸®º¸µå | Àü±¤ÆÇ | À¥°øºÎ¹æ | Ä¿¹Â´ÏƼ | ÂÊÁöÇÔ