¾Æ·¡´Â º» ¿¹Á¦ÀÇ ÀÚ¹Ù½ºÅ©¸³Æ®ÀÔ´Ï´Ù.
<html> <head> <title>ÇØÇÇCGI</title> <script> /* This script and many more are available free online at The JavaScript Source!! http://javascript.internet.com Created by: Patrick Fitzgerald | http://www.barelyfitz.com/ */ function truncate() { var len = 100; //¹®ÀÚ¿ ÀÚ¸¦ °¹¼ö ¼³Á¤ var p = document.getElementById('truncateMe'); if (p) { var trunc = p.innerHTML; if (trunc.length > len) {
/* Truncate the content of the P, then go back to the end of the previous word to ensure that we don't truncate in the middle of a word */ trunc = trunc.substring(0, len); trunc = trunc.replace(/\w+$/, '');
/* Add an ellipses to the end and make it a link that expands the paragraph back to its original size */ trunc += ' <a href="#" ' + 'onclick="this.parentNode.innerHTML=' + 'unescape(\''+escape(p.innerHTML)+'\');return false;">' + '<span style="font-size: 12px;">[more...]</span></a>'; p.innerHTML = trunc; } } }
// Multiple onload function created by: Simon Willison // http://simon.incutio.com/archive/2004/05/26/addLoadEvent function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } } }
addLoadEvent(function() { truncate(); }); </script>
</head> <body> <b>¹®Àå ¸Ç ³¡ More¸¦ Ŭ¸¯Çغ¸¼¼¿ä.</b><p> <p id="truncateMe"> [Áß¾ÓÀϺ¸ ÀÌ»óÀÏ] ¾ÕÀ¸·Î ¹Ì±¹¿¡ À̹ÎÇÏ·Á¸é ¿µ¾î¸¦ ÀßÇØ¾ß ÇÑ´Ù. ¶Ç Àü¹®±â¼úÀ» º¸À¯ÇÏ°í ÀÖ¾î¾ß À¯¸®Çϸç, Çз°ú °æ·Âµµ ÁÁ¾Æ¾ß ÇÑ´Ù.
¹Ì »ó¿øÀÇ ¹ÎÁÖ.°øÈ ¾ç´ç ´ëÇ¥µé°ú ¹é¾Ç°üÀº 17ÀÏ À̹Π½É»ç°úÁ¤¿¡¼ À̹ΠÈñ¸ÁÀÚÀÇ ¿µ¾î ±¸»ç ´É·Â, Á÷¾÷Àû Àü¹®¼º, ±³À° ¼öÁØ µîÀ» Á¡¼öÈÇØ ³ôÀº ¼øÀ¸·Î ¿ì¼±±ÇÀ» ºÎ¿©ÇÏ´Â ³»¿ëÀ» °ñÀÚ·Î ÇÑ À̹ΰ³Çõ¹ý¾ÈÀ» ¸¶·ÃÇß´Ù. ¹ý¾È¿¡ µû¸£¸é °¡Á· À̹ÎÀ̵ç Ãë¾÷ À̹ÎÀÌµç ¾ÕÀ¸·Î´Â ÀÌ °°Àº Á¡¼öÁ¦(merit point)°¡ Àû¿ëµÈ´Ù. °¡Á· À̹ÎÀº Ãà¼ÒµÇ¸ç, Ãë¾÷ À̹ÎÀº È®´ëµÈ´Ù. ¿ì¼ö ÀÎÀû ÀÚ¿øÀ» È®º¸Çϱâ À§ÇÑ ¸ñÀûÀÌ´Ù. </p>
|