|
|
|
|
ûÇæÔñýѨ / 2003-07-20 / ¿ÀÀü 3:52:09 / 219.250.200.76
Á¶È¸¼ö : 197
|
[Áú¹®] °Ë»ö¾î¸¦ ã¾Æ ÇÏÀ̶óÀÌÆ® ±â´ÉÀ» ÁÖ°í ½ÍÀºµ¥..... |
> ÷ ¿Í º¸¾Ò½À´Ï´Ù. ¿©±âÀú±â °Ô½ÃÆÇ Âü ¸¹ÀÌ µÎµÎ·È´Âµ¥ ´äÀ» ãÁö ¸øÇؼ.....Áú¹®ÀÇ ¿ä´Â °¢ ÇÁ·¹ÀÓÀ¸·Î Ãâ·ÂµÈ °á°ú¿¡¼ °Ë»ö¾î¿Í °°Àº ¹®ÀÚ¿·Î À̵¿ ÇÏÀ̶óÀÌÆ® ½ÃÅ°´Â °Ì´Ï´Ù. ÀÌ·±°Ô °¡´ÉÇÑÁö.....°¡´ÉÇÏ´Ù¸é Á¦¹ß ¹æ¹ý Á» ¾Ë·Á ÁÖ¼¼¿ä. html·Î ¸ÇÀ§ °Ë»öÇÁ·¹ÀÓÀ» Æ÷ÇÔÇؼ °¢°¢ÀÇ °á°úÃâ·ÂÀ» À§ÇÑ ³×°³ÀÇ ÇÁ·¹ÀÓÀ» ÁÖ¾ú½À´Ï´Ù. ÀÌ·¸°Ô µÇ¸é °¢ ÇÁ·¹ÀÓ¿¡ ctrl+f°°Àº ¸í·ÉÀ» ÁÖ¾î¾ß °ÚÁÒ. ±×¸®°í ÇÏÀ̶óÀÌÆ® ½ÃÅ°´Â °Í ±îÁö. ¾ÆÁ÷ Ãʺ¸¶ó ¸í·É¾î Á¶Â÷ ¹Ì¼÷ ÇÕ´Ï´Ù. ´ëü ¹«½¼ ¸í·É¾î¸¦ ½á¾ß ÇÏ¸ç ¾îµð¿¡ ³Ö¾î¾ß ÇÏ´Â °ÅÁÒ?
> text.asp------------------------------------------
> <%@ Language=VBScript %>
>
> <HTML>
>
> <HEAD>
>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
>
> </HEAD>
>
> <BODY>
>
> <H3></h3>
>
> <form action="text_r.asp" method=post>
>
> <table border=0 width="235">
>
> <tr>
>
> <td width="89" height="34">°Ë»ö : </td>
>
> <td width="131" height="34"><input type=text name=username size=10>
>
> <input type="submit" value= "ã±â"></td>
>
> <td width="1"></td>
>
> </tr>
>
>
>
> <tr>
>
> <td colspan= 2 align=center width="224" height="6">
>
> </td>
>
> <td width="1"></td>
>
> </tr>
>
> </table>
>
> </form>
>
> </BODY>
>
> </HTML>
> text_r.asp----------------------------------------
> <%@ Language=VBScript %>
>
> <html>
>
> <head>
>
> <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
>
> </head>
>
> <body>
>
> <script language="Javascript">
>
> <!--//
>
> parent.b.location.href="http://xx.com/club/search/search_result1.asp?QU=<%=REQUEST("username")%>&mscssid=<%=REQUEST("username")%>";
>
> parent.c.location.href="http://yy.com/search97cgi/qp.cgi?Collection=product.col&flag=1&PrintQuery=<%=REQUEST("username")%>&ResultTemplate=default.hts&SortField=score&SortOrder=Desc&ResultMaxDocs=200&ResultStart=1&ResultCount=20&sQuery=<%=REQUEST("username")%>";
>
> parent.d.location.href="http://zz.com/search/gate/SearchTotalResult.jsp?rstart=1&class1=0&qry=<%=REQUEST("username")%>=&query=<%=REQUEST("username")%>";
>
> parent.e.location.href="http://ff.co.kr/public/util/SearchResult.asp?qt=<%=REQUEST("username")%>";
>
> history.back(0);
>
> //-->
>
> </script>
>
> </body>
>
> </html>
> --------------------------------------------------
-----------------------------------------------------------
´äº¯ÀÇ Àǵµ¸¦ Á¤È®È÷ ÆľÇÇß´ÂÁö´Â Àß ¸ð¸£°Ú½À´Ï´Ù.
Á¦°¡ ´ëÃæ ÆľÇÇϱâ·Î´Â ÇϳªÀÇ °Ë»öâ¿¡¼ °Ë»ö¾î¸¦ ´øÁö¸é
°á°ú°¡ ¿©·¯°³ÀÇ ÇÁ·¹ÀÓÀ¸·Î ³ª´²¾îÁ® ³ª¿À°í(4°³ Á¤µµ µÇ´Â °Í °°±º¿ä.)
±×¸®°í ±× °á°ú¿¡¼ ã°íÀÚ ÇÏ´Â ´Ü¾î¸¦ ÇÏÀ̶óÀÌÆ®·Î Ç¥½ÃÇÏ°í
±× À§Ä¡·Î À̵¿ ½ÃÅ°°íÀÚ ÇϽô °Å¶ó°í »ý°¢ µÇ³×¿ä.
ÀÏ´Ü ¿©·¯°³ÀÇ °Ë»öâ¿¡ °á°ú°¡ ³ª¿À°Ô ÇÏ´Â °Ç ÇϽø®¶ó º¸±¸¿ä...
±× °á°ú¿¡ ã°íÀÚ ÇÏ´Â ´Ü¾î¸¦ ÇÏÀ̶óÀÌÆ® ó¸®ÇÏ´Â ¹æ¹ýÀº asp¶ó¸é replace ÇÔ¼ö¸¦ ÀÌ¿ëÇÏ½Ã¸é µË´Ï´Ù.
¿¹¸¦ µé¾î V_Conents¶ó´Â º¯¼ö¿¡ »Ñ·ÁÁÙ Àüü ³»¿ëÀÌ µé¾î ÀÖ°í
±×±â¼ ã°íÀÚ ÇÏ´Â ´Ü¾î°¡ V_SearchWord¿¡ ´ã°ÜÁ® ÀÖ°í °á°ú¸¦ ¹¹ ºÓÀº»öÀ¸·Î °Á¶ÇØ ÁÖ°í ½Í´Ù¸é....
V_Contents=Replace(V_Contents, V_SearchWord, "<font color=ff0000>"&V_SearchWord&"</font>")
ÀÌ·± ½ÄÀ¸·Î º¯°æÀ» Çϸé ÀÌÁ¦ ±× ¹®¼¿¡¼ ÀÚ½ÅÀÌ Ã£°íÀÚ ÇÏ´Â ´Ü¾î´Â ºÓÀº»öÀ¸·Î °Á¶°¡ µÇ°Ô µË´Ï´Ù.
´ÙÀ½¿¡ À̵¿ÇÏ´Â ¹®Á¦°¡ Àִµ¥ ÀÌ°Ç htmlÀÇ a ű×ÀÇ name ¼Ó¼ºÀ» ÀÌ¿ëÇÏ½Ã¸é µÇ°Å¶ó°í »ý°¢ÇÕ´Ï´Ù.
¿©±â¿¡ ´ëÇؼ´Â Ã¥À̳ª À¥¿¡¼ ã¾Æ º¸½Ã¸é ±Ý¹æ ¾Æ½Ç°Å¶ó°í »ý°¢Çϱ¸¿ä....
¿¹¸¦ µé¸é ³»°¡ list.asp·Î ¿¬°áÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ ÇÏÁö¸¸
<a href="list.asp">aaa</a>
list.asp ¹®¼ÀÇ Æ¯Á¤ À§Ä¡ÀÎ 001À̶ó´Â À§Ä¡·Î ¿¬°áÀ» ÇÏ·Á¸é ¾Æ·¡¿Í °°Àº ½ÄÀ¸·Î ¸µÅ©¸¦ ÇÕ´Ï´Ù.
<a href="list.asp#001">aaa</a>
±×¸®°í ¹°·Ð list.asp¿¡¼´Â
<a name="001">¿©±â¾ß</a>
ÀÌ·±½ÄÀ¸·Î Ç¥½Ã¸¦ ÇØ µÎ¾î¾ß ÇÏÁÒ. µû¶ó¼ ÀÌ°É ±¸ÇöÇϱâ À§Çؼ´Â
ÁúÀÇ °á°ú¸¦ ³ªÅ¸³»´Â ÆäÀÌÁöÀÇ url¿¡ #SearchPoint¶ó´Â °É Ãß°¡Çؼ º¸³»°í
¹Þ´Â ÂÊ¿¡¼´Â ¾Æ±î °á°ú¸¦ ³ªÅ¸³»´Â °É È®ÀåÇؼ
V_Contents=Replace(V_Contents, V_SearchWord, "<a name=SearchPoint><font color=ff0000>"&V_SearchWord&"</font></a>")
ÀÌ·± ½ÄÀ¸·Î ±¸ÇöÀ» ÇØ ÁÖ½Ã¸é µÇ°ÚÁö¿ä...
±×·³ ¼ö°íÇϼ¼¿ä....
|
|
|
|