textarea¿¡ ÀÔ·ÂµÈ ÅؽºÆ®¸¦ ÄíÅ°·Î ÀúÀåÇÕ´Ï´Ù |
|
|
 |
17³â Àü |
ÀÔ·Ââ¿¡ ÅؽºÆ®¸¦ ÀÔ·ÂÈÄ save text ¹öÆ°À» Ŭ¸¯Çϸé ÄíÅ°¿¡ ÇØ´ç ÅؽºÆ®¸¦ ÀúÀåÇÏ¿© ´ÙÀ½¹ø¿¡ ÀÌ ÆäÁöÀÌ¿¡ Á¢¼ÓÇßÀ»¶§ ÀÔ·ÂµÈ ³»¿ëÀ» ±×´ë·Î µð½ºÇ÷¹ÀÌ ÇÕ´Ï´Ù.
<HTML>
<HEAD>
<title>http://www.xtx.kr</title>
<script>
function ReadCookie (Name)
{
var search = Name + "="
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 (document.cookie.substring(offset, end))
}
else
return ("");
}
else
return ("");
}
function WriteCookie (cookieName, cookieValue, expiry)
{
var expDate = new Date();
expDate.setTime (expDate.getTime() + expiry);
document.cookie = cookieName + "=" + escape (cookieValue) + "; expires=" + expDate.toGMTString() + "; path=/";
}
function getCookies()
{
document.noteForm.note.value = unescape(ReadCookie("note"));
}
</script>
</head>
<body>
<form NAME="noteForm">
<textarea ROWS="5" COLS="40" NAME="note" WRAP="VIRTUAL"></textarea><br>
<input TYPE="button" VALUE="Save Text" onClick="WriteCookie('note', document.noteForm.note.value, 2678400000)">
<INPUT TYPE="button" VALUE="»õ·Î°íħ" onClick='parent.location="javascript:location.reload()"'>
</form>
<script>
window.onload=function() { getCookies(); }
</script> |
|
̵̧ : 365 |
̵̧
¸ñ·Ï
|
|