ȨÆäÀÌÁö óÀ½ Á¦ÀÛÇÏ´Â ¿ÕÃʺ¸ÀÔ´Ï´Ù.
Á¦·Îº¸µå Àß ¸ð¸£¸é¼ ÀÏ´Ü ¼³Ä¡´Â Çߴµ¥¿ä
À̹ÌÁö µîÀ» »ðÀÔÇÏ´Â ¹æ½Ä¿¡ ºÒ¸¸À» ´À³¢´ø Â÷¿¡ ¸®µð´ÔÀÇ ±ÛÀ» º¸¾Ò½À´Ï´Ù.
¹°·Ð ³Ê¹« ¹Ý°¡¿ÔÁö¿ä~
±Ùµ¥... ½ÃÅ°´Â´ë·Î ´Ù ÇÑ°Í °°Àºµ¥... ¾ÈµÇ¿ä...
¹¹°¡ À߸øµÇ¾ú´ÂÁö Çѹø ºÁÁÖ¼¼¿ä.
1. lip.phpÆÄÀÏÀ» ´ÙÀ½°ú °°ÀÌ ¼öÁ¤Çß½À´Ï´Ù. (Á¦·Îº¸µå¿¡ <<¾÷µ¥ÀÌÆ® º¸°í : 2004. 3. 15>> À̹ÌÁö¹Ú½º ±â´É°ú °£¼·Çö»ó ¾ø¾Ú
http://reedyfox.com/cont/040307.phps)À̶ó°í ¿Ã·ÁÁֽŠ°Í ±×´ë·Î Copy)
// URL, MailÀ» ÀÚµ¿À¸·Î üũÇÏ¿© ¸µÅ©¸¸µë
function autolink($str) {
//ÀÓÀÇÀÇ °ø¹éÀ» »ðÀÔ
$str = " ".$str;
//mmsġȯ(ÀÚµ¿, ¹Ì´ÏÀ§´Ï ÆÐÅÏ)
$str = eregi_replace("( |\n)(mms)://([^[:space:]]*)([[:alnum:]\#\?\/\&\=\200-\377])(\.mp3|\.MP3|\.wma|\.WMA|\.wmv|\.WMV|\.asf|\.ASF|\.mpg|\.MPG|\.mpeg|\.MPEG|\.mov|\.MOV)", "<img src=../2img/media_icon.gif border=0 align=absmiddle> <a class=auto href='mms://\\3\\4\\5' target=_blank>mms://\\3\\4\\5</a> <div>[<a onfocus=this.blur() href='javascript:void(0)' onclick=\"generateMedia('fox_\\3\\4\\5','mms://\\3\\4\\5')\" class=auto_new>ÀÌ ÆÄÀÏÀ» ¹Ù·Î Àç»ýÇϱâ</a>]</div>", $str);
//¹Ìµð¾îġȯ(ÀÚµ¿, ¹Ì´ÏÀ§´Ï ÆÐÅÏ)
$str = eregi_replace("( |\n)(http)://([^[:space:]]*)([[:alnum:]\#\?\/\&\=\200-\377])(\.mp3|\.MP3|\.wma|\.WMA|\.wmv|\.WMV|\.asf|\.ASF|\.mpg|\.MPG|\.mpeg|\.MPEG)", "<img src=../2img/media_icon.gif border=0 align=absmiddle> <a class=auto href='http://\\3\\4\\5' target=_blank>http://\\3\\4\\5</a> <div>[<a onfocus=this.blur() href='javascript:void(0)' onclick=\"generateMedia('fox_\\3\\4\\5','http://\\3\\4\\5')\" class=auto_new>ÀÌ ÆÄÀÏÀ» ¹Ù·Î Àç»ýÇϱâ</a>]</div>", $str);
//Ç÷¡½Ãġȯ(ÀÚµ¿, ¹Ì´ÏÀ§´Ï ÆÐÅÏ)
$str = ereg_replace("( |\n)(http)://([^[:space:]]*)([[:alnum:]\#\?\/\&\=\200-\377])(\.swf|\.SWF)","<img src=../2img/flash_icon.gif border=0 align=absmiddle> <a class=auto href='http://\\3\\4\\5' target=_blank>http://\\3\\4\\5</a><br><br><EMBED loop=true menu=false quality=high WIDTH=320 HEIGHT=240 TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' src='http://\\3\\4\\5' border=1></embed><br>", $str);
//À̹ÌÁöġȯ(ÀÚµ¿, ¹Ì´ÏÀ§´Ï ÆÐÅÏ)
$str = eregi_replace("( |\n)(http)://([^[:space:]]*)([[:alnum:]\#\?\/\&\=\200-\377])([^[:space:]]*)(\.png|\.jpg|\.gif|\.PNG|\.JPG|\.GIF|\.bmp|\.BMP)", "<a class=auto href='http://\\3\\4\\5\\6' target=_blank><img src='http://\\3\\4\\5\\6' border=0></a>", $str);
// À̹ÌÁöġȯ(ÀÚµ¿, ¸®µð ÆÐÅÏ)
//$str = ereg_replace("(http://[a-zA-Z0-9\.\/\_\-\%]{2,}(.png|.jpg|.gif|.PNG|.JPG|.GIF)+( |\n)?)","<a href=\\0 target=_blank><img src=\\0 border=0></a>"," ".$str);
// À̹ÌÁöġȯ(¼öµ¿)
$homepage_pattern = "/([^\"\'\=\>])(img)\:\/\/(.[^\n\<\"\']+)/";
$str = preg_replace($homepage_pattern,"\\1<a href=http://\\3 target=_blank border=0><img src=http://\\3 border=0></a>", " ".$str);
// URL ġȯ
$homepage_pattern = "/( |\n)(http|HTTP|ftp|FTP|telnet|TELNET)\:\/\/(.[^\n\<\"\' ]+)/";
$str = preg_replace($homepage_pattern,"\\1<a class=auto href=\\2://\\3>\\2://\\3</a> <a class=auto_new href=\\2://\\3 target=_blank>[»õâ¿¡¼ ¿±â]</a>", " ".$str);
// ¸ÞÀÏ Ä¡È¯
$email_pattern = "/([ \n]+)([a-z0-9\_\-\.]+)@([a-z0-9\_\-\.]+)/";
$str = preg_replace($email_pattern,"\\1<a href=mailto:\\2@\\3>\\2@\\3</a>", " ".$str);
return $str;
}
2. ±×¸®°í head »çÀÌ¿¡ ´ÙÀ½°ú °°ÀÌ »ðÀÔÇß½À´Ï´Ù. (Á¦ ȨÆäÀÌÁö´Â ³ëÇÁ·¹ÀÓÀÔ´Ï´Ù. ±×·¡¼ index.htm, head.htm, foot.htmÀ» ¸¸µé°í, °Ô½ÃÆÇÀ§/¾Æ·¡¿¡ head.htm/foot.htmÀ» ³Ö´Â ½ÄÀ¸·Î ¸¸µé¾ú½À´Ï´Ù. Á¦°¡ »ðÀÔÇÑ ÆÄÀÏÀº head.htmÀÇ head ºÎºÐÀÔ´Ï´Ù)
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>MyZinger</title>
<meta name="generator" content="Namo WebEditor v6.0">
<style><!--
a:link { text-decoration:none; }
a:visited { text-decoration:none; }
a:active { font-family:µ¸¿ò; font-weight:bold; font-size:9pt; color:black; text-decoration:none; }
a:hover { font-family:µ¸¿ò; font-weight:bold; font-size:9pt; color:black; text-decoration:none; }
-->
</style>
<script>
function generateMedia(sID,sURL)
{
try
{
if (document.getElementById(sID)==null)
{
var el = event.srcElement;
while(el.tagName!="DIV")
el = el.parentElement;
sHTML = "<EMBED id='"+sID+"' autostart='true' SRC='"+sURL+"'>";
el.insertAdjacentHTML('afterEnd',sHTML);
}
}
catch(e){}
}
</script>
</head>
3. ±×¸®°í ³ª¼ À̹ÌÁöÆÄÀÏ ÁÖ¼Ò¸¦ Àû¾ú´õ´Ï ±×¸²Àº º¸ÀÌÁö ¾Ê°í ±×³É ¸µÅ©¸¸ µË´Ï´Ù.
http://www.myzinger.com/bbs/zboard.php?id=Diary&page=1&page_num=10&select_arrange=headnum&desc=&sn=off&ss=on&sc=on&keyword=&no=13&category=4
4. ÀÌÁ¦ ¾î¶»°Ô ÇؾßÇϳª¿ä? ¾ÆÁ÷ µ¿¿µ»óÀº Çغ¸Áöµµ ¾Ê¾Ò´Âµ¥¿ä...Á¦°¡ ¿øÇÏ´Â °ÍÀº ´ÙÀ½°ú °°½À´Ï´Ù.
À̹ÌÁöÆÄÀÏÀ» ³»°¡ ¿øÇÏ´Â À§Ä¡¿¡ ¿øÇÏ´Â °¹¼ö¸¸Å ³Ö°í ½Í½À´Ï´Ù. ±×¸®°í, À̹ÌÁöÆÄÀÏÀ» Ŭ¸¯ÇÏ¸é »õâ¿¡ ¿øº»Å©±â·Î º¸¿©Áö°Ô ÇÏ°í ½Í½À´Ï´Ù.
µ¿¿µ»óÆÄÀ»À» ³»°¡ ¿øÇÏ´Â À§Ä¡¿¡ ¿øÇÏ´Â °¹¼ö¸¸Å ³Ö°í ½Í½À´Ï´Ù. »ç¶÷µéÀÌ °³½Ã¹°À» º¼¶§ ±× ȸ鿡¼ µ¿¿µ»óÀÌ ½ÇÇàµÇ±â¸¦ ¹Ù¶ø´Ï´Ù.
»çÀÌÆ®¸µÅ©´Â »õâ¿¡¼ µÇ¾úÀ¸¸é ÁÁ°Ú½À´Ï´Ù.
µµ¿ÍÁÖ¼¼¿ä......
°«³¾Æ±â ȨÆäÀÌÁö¸¦ ¸¸µé°í ÀÖ´Â ¿ÕÃʺ¸ ¾Æºü