html ¹®¼¾È¿¡? °£´ÜÇÑ ¸Þ¸ð¸¦ ÀúÀåÇÒ¼ö ÀÖ´Â.... ¿À·¡µÈ 96³â ¼Ò½º³×¿ä.
(ÀúÀåÀº µÇÁö¸¸ Æù ¶Ç´Â Ÿ ºê¶ó¿ìÀú·Î º¸¸é ÀúÀå³»¿ëÀÌ ¾Èº¸ÀÌ´Â °Í±îÁö´Â ÁÁÀºµ¥....)
¹®Á¦´Â ÀúÀå¿ë·®¿¡ ÇÑ°è°¡ Àִµí ÇÕ´Ï´Ù.
<HTML>
<HEAD>
<STYLE><!--
.leading200 { line-height: 200% }
.leading180 { line-height: 180% }
.leading150 { line-height: 150% }
.leading100 { line-height: 100% }
-->
</STYLE>
<scRIPT LANGUAGE=javascript>
<!-- Hide Code
/* This code is Copyright (c) 1996 Nick Heinle and Athenia Associates,
* all rights reserved. In order to receive the right to license this
* code for use on your site the original code must be copied from the
* Web site webreference.com/javascript/. License is granted to user to
* reuse this code on their own Web site if and only if this entire copyright
* notice is included. Code written by Nick Heinle of webreference.com.
*/
function getCookie (name) {
var dcookie = document.cookie;
var cname = name + "=";
var clen = dcookie.length;
var cbegin = 0;
while (cbegin < clen) {
var vbegin = cbegin + cname.length;
if (dcookie.substring(cbegin, vbegin) == cname) {
var vend = dcookie.indexOf (";", vbegin);
if (vend == -1) vend = clen;
return unescape(dcookie.substring(vbegin, vend));
}
cbegin = dcookie.indexOf(" ", cbegin) + 1;
if (cbegin == 0) break;
}
return null;
}
function setCookie (name, value, expires) {
if (!expires) expires = new Date();
document.cookie = name + "=" + escape (value) +
"; expires=" + expires.toGMTString() + "; path=/";
}
function delCookie (name) {
var expireNow = new Date();
document.cookie = name + "=" +
"; expires=Thu, 01-Jan-70 00:00:01 GMT" + "; path=/";
}
// ***End of Heinle Code***
var cookieName = "_note";
function checkNote() {
if(getCookie(cookieName) != null) {
document.note_form.note_output.value = unescape(getCookie(cookieName));
}
}
function writeNote() {
var expdate = new Date();
expdate.setTime(expdate.getTime() + (24 * 60 * 60 * 1000 * 31));
var note = escape(document.note_form.note_input.value);
setCookie(cookieName,note,expdate);
}
// End hide -->
</scRIPT>
</HEAD>
<BODY bgcolor="#FFD18C" text="black" link="blue" vlink="purple" alink="red" onload="checkNote()">
<DIV align="center">
<TABLE border="0" cellpadding="3" bgcolor="#2EE98B">
<TR>
<TD width="573" bgcolor="white"><FONT size="5" color="blue"><B>Free Note</B></FONT></TD>
</TR>
<TR>
<TD width="573" bgcolor="white"><FONT Size="2">¿©±â¿¡ ¸Þ½ÃÁö¸¦ ³²±â¸é ´ÙÀ½ ¹æ¹®ÇÒ ¶§ ±× ¸Þ½ÃÁö¸¦ º¸½Ç¼ö ÀÖ½À´Ï´Ù</font>
<FORM name="note_form" method="get"><P align="center"><FONT color="blue"><B>¿©±â¿¡ »õ·Î¿î ¸Þ¸ð¸¦ Çϼ¼¿ä</B></FONT><BR>
<TEXTAREA name="note_input" rows="10" cols="60"></TEXTAREA><BR>
<INPUT type="button" value="Submit" onclick="writeNote()"></P><P align="center"><FONT color="red"><B>±ÍÇÏ°¡ Àü¿¡ ³²±â½Å ¸Þ¸ðÀÔ´Ï´Ù</B></FONT><BR>
<TEXTAREA name="note_output" rows="10" cols="60"></TEXTAREA></P>
<P align="center"><INPUT type="button" value="Delete Note" onclick="delCookie(cookieName)"></P></FORM></TD>
</TR>
<TR>
<TD width="573"><FORM name="form" method="get"></FORM></TD>
</TR>
</TABLE>
</DIV>
</body>
</HTML>
ÄíÅ°¿¡ µ¥ÀÌÅ͸¦ ÀúÀåÇϴ°Ű°Àºµ¥
ÄíÅ°´Â 4kb·Î ¿ë·®ÀÌ Á¦Çѵ˴ϴÙ
ÇѱÛÀº 2Byte¶ó ¾à 512ÀÚÁ¤µµ¾µ¼öÀְڳ׿ä
´Ã¸®´Â°Ç ºÒ°¡´ÉÇÕ´Ï´Ù
¸·¿¬È÷ ÀϺη¯ ¿ë·®Á¦ÇÑÀ» µÐ°Ç ¾Æ´Ò²¨´Ù ½Í¾ú´Âµ¥ ¿ª½Ã³ª³×¿ä.
¹æ±Ý full·Î ÀúÀåµÈ ÇѱÛÀ» ±ÛÀÚ¼ö°è»ê±â·Î µ¹·Áº¸´Ï...
°ø¹éÆ÷ÇÔ 573ÀÚ(979byte), °ø¹éÁ¦¿Ü 425ÀÚ(831byte)°¡ ³ª¿À³×¿ä.
±×·±µ¥ 1kb = 1,024byte = ÇÑ±Û 512ÀÚÀÌ´øµ¥ ÄíÅ°´Â 4kb...
±×·³ 3kb´Â ´Ã »ç¿ëµÇ´Â ¿ë·®À̶õ ÀǹÌÀΰ¡¿ä?
¼ÒÁßÇÑ ½Ã°£³»¼ ´äº¯ ÁֽŰſ¡ 'Áø½É' °¨»ç µå¸³´Ï´Ù.
²Ù¹÷~
ÇѱÛÀÇ °æ¿ì ¿ì¸®°¡ ÀϹÝÀûÀ¸·Î »ç¿ëÇÏ´Â ÀÎÄÚµùÀÎeuc-kr¿¡¼ 2byteÀÇ ±æÀ̸¦ °¡Áý´Ï´Ù.
utf-8ÀÇ °æ¿ì 3byte¸¦ °¡Áö°Ô µÇ´Âµ¥ ÇöÀç ¼Ò½º¸¦ È®ÀÎÇغ¸´Ï
±ÛÀÚ¸¦ ascii ÄÚµå·Î º¯È¯Çϴµ¥ ÇѱÛÀ» asciiÄÚµå·Î º¯È¯ÇÏ°Ôµµ¸é ±æÀÌ°¡ ´Ã¾î³ª°ÔµË´Ï´Ù.
¿¹¸¦µé¾î "±è" ÀÚü´Â 2byteÁö¸¸ asciiÄÚµå·Î º¯È¯°ªÀº "%uAE40" °¡ µË´Ï´Ù.
'¾È³çÇϼ¼¿ä'¸¦ byte·Î °è»êÇϸé 10byteÁö¸¸ ascii·Î º¯È¯Çϸé '%uC548%uB155%uD558%uC138%uC694'°¡ µÇ¼
30byte¸¦ °¡Áö°ÔµË´Ï´Ù.
º¯È¯°ªÀ» È®ÀÎÇÏ°í½ÍÀ¸¸é ´ÙÀ½ gifó·³ µû¶óÇغ¸¼¼¿ä
Å©·Òºê¶ó¿ìÀú¿¡¼f12´©¸£¸é °³¹ßÀÚ¸ðµåâÀÌ ¶å´Ï´Ù. ±×¸®°í µû¶óÇϽøéµË´Ï´Ù.
º¯È¯µÊ asciiÄڵ带 unescapeÇÔ¼ö¿¡ ³Ö°ÔµÇ¸é ´Ù½Ã Çѱ۷Π³ª¿É´Ï´Ù.
unescape('%uC548%uB155%uD558%uC138%uC694'); -> "¾È³çÇϼ¼¿ä"
ÀÌ·¸°Ô ¸»ÀÌÁÒ
@À¯ºñµå
Èå¹Ì~ ±â´ë ¾ÈÇߴµ¥ Á¤¸» °¨»çÇÕ´Ï´Ù.
escape(' ')¿¡¼ ÀúÀå¿ë·® ÇÑ°èÀÎ ÇÑ±Û ¾à 587ÀÚ(´Ù¸¥³»¿ëÀ¸·Î Çß´õ´Ï Á¶±Ý ´õ ´Ã¾î³²)¸¦ ÀÏ°ý º¯È¯ÇÏÁö ¸øÇؼ...
´ñ±Û ³»¿ëÁß '±è'À̶õ 1±ÛÀÚ°¡ 6 byte(%uAE40)°í, ¾È³çÇϼ¼¿äÀÇ 1±ÛÀÚµµ 6 byte¶õ ±Ù°Å·Î...
587ÀÚ x 6 byte = 3,522 byte = ¾à 3.5kb·Î
ÄíÅ°¿ë·® 4kb¿Í ºñ½ÁÇÏ°Ô ³ª¿À¸é¼ ±Ã±ÝÁõÀÌ ¸¶Àú Ç®·È½À´Ï´Ù¤¾
½Ã°£ ³»Áּż Á¤¸» °í¸¿½À´Ï´Ù.