Menu

통합 검색기

2016. 5. 30. 02:39

안개핑 Javascript

 

 

<script language=JavaScript>
<!--
function click()
{
var upquery =  document.happysearch.query.value;

        var words = "";

        for(var p = 1; p<= upquery.length ; p++){
                if(upquery.substring(p-1,p) == " "){
                        words+="+";
                }
                else{
                        words+=upquery.substring(p-1,p);
                }
        }

var dimquery =  words;

var dimsite =  document.happysearch.site.options[document.happysearch.site.selectedIndex].value;

var dimwinopen =  document.happysearch.winopen.value;

queryurl = new Array(18);
queryurl[0] = "search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=i&t&p=";
queryurl[1] = "search.empas.com/search/all.html?col=WW&sv=IS&lk=noframes&nh=10&q=";
queryurl[2] = "kr.search.yahoo.com/bin/search?p=";
queryurl[3] = "search.naver.com/search.naver?nfid=junheego&where=nexearch&query=";
queryurl[4] = "search.daum.net/cgi-bin/search?u=host&qt=&q=";
queryurl[5] = "search.lycos.co.kr/search/srch_allindex.asp?searchfield=total&query=";
queryurl[6] = "www.altavista.co.kr/search/webcategory.php3?stype=webcategory&stq=0&nbq=5&enc=euckr&pg=q&q=";
queryurl[7] = "dsearch.hanmir.com/cgi/dirsearch.cgi?TG=1&QR=";
queryurl[8] = "irsearch.simmani.com/cgi-bin/irsearch.cgi?q=";
queryurl[9] = "dic.naver.com/endic?where=dic&query=";
queryurl[10] = "kr.imagesearch.yahoo.com/search/image?p="; 
queryurl[11] = "search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=n&t&p="; 
queryurl[12] = "krdic.naver.com/krdic?where=krdic&query="; 
queryurl[13] = "search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=i&t=s&p=";
queryurl[14] = "kr.search.encycl.yahoo.com/search/enc?jy=ency&p="; 
queryurl[15] = "map.simmani.com/cgi-bin/search.cgi?s=0&c=15&m=9&q=";
queryurl[16] = "file.simmani.com/cgi-bin/FileSearch.cgi?s=0&c=10&m=8&q=";
queryurl[17] = "tel.hanmir.com/cgi-bin/kt114.cgi?TG=7&QR=";


sitename = new Array(18);
sitename[0] = "1";
sitename[1] = "2";
sitename[2] = "3";
sitename[3] = "4";
sitename[4] = "5";
sitename[5] = "6";
sitename[6] = "7";
sitename[7] = "8";
sitename[8] = "9";
sitename[9] = "10";
sitename[10] = "11";
sitename[11] = "12";
sitename[12] = "13";
sitename[13] = "14";
sitename[14] = "15";
sitename[15] = "16";
sitename[16] = "17";
sitename[17] = "18";


var i = 0;
while (i < 18) {
        if(dimsite == sitename[i]) {
                if (dimwinopen == 'yes') {
                window.open("http://"+queryurl[i]+dimquery, name, '');
                }
                else {
                window.location="http://"+queryurl[i]+dimquery;
                }

                break;
        }
        i++;
}


}
//-->
</script>
      <TABLE borderColor=#ffffff cellSpacing=0 cellPadding=0 align="center"
            border=0>
              <TBODY>
              <TR>
                <TD>
            <p align="left"> </TD>
                <TD>
            <div align="left">
                  <TABLE
                  style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px"
                  height=33 cellSpacing=1 cellPadding=0 border=0>
                    <TBODY>
                    <TR>
                      <FORM name=happysearch onsubmit=click()
                      action=javascript:click()><INPUT type=hidden value=no
                      name=winopen>
                      <TD
                      style="BORDER-RIGHT: rgb(204,204,255) 0px dotted; BORDER-TOP: rgb(204,204,255) 0px dotted; BORDER-LEFT: rgb(204,204,255) 0px dotted; BORDER-BOTTOM: rgb(204,204,255) 0px dotted"
                      align=middle height=2>
                                <p align="left"><FONT color=black><SPAN

                        style="FONT-SIZE: 10pt"><SELECT name=site> <OPTION
                          value=1 selected>하자아이</OPTION> <OPTION
                          value=2>엠파스</OPTION> <OPTION value=3>야후</OPTION>
                          <OPTION value=4>네이버</OPTION> <OPTION
                          value=5>다음</OPTION> <OPTION
                          value=6>라이코스</OPTION> <OPTION
                          value=7>알타비스타</OPTION> <OPTION
                          value=8>한미르</OPTION> <OPTION
                          value=9>심마니</OPTION> <OPTION
                          value=10>영어사전</OPTION> <OPTION
                          value=11>이미지</OPTION> <OPTION
                          value=12>뉴스</OPTION> <OPTION
                          value=13>국어사전</OPTION> <OPTION
                          value=14>음악</OPTION> <OPTION
                          value=15>백과사전</OPTION> <OPTION
                          value=16>지도</OPTION> <OPTION
                          value=17>파일검색</OPTION><OPTION
                          value=18>전화번호</OPTION></SELECT>  
<INPUT size="26" name=query>
<input type=submit value="검색"></SPAN></FONT></TD></FORM></TR></TBODY></TABLE>
        </div>
</TD>
</TR></TBODY></TABLE>
<p align="left">
<!---------소스끝--------->

 

 

<p align="left"> </p>
<table align="center" border="0" width="600">
    <tr>
        <td width="973"><!-----------통합검색기 소스시작----------><BR><script
language=JavaScript><BR><!--<BR>function click()<BR>{<BR>var upquery
=  document.happysearch.query.value;<BR><BR>        var words =
"";<BR><BR>        for(var p = 1; p<= upquery.length ;
p++){<BR>                if(upquery.substring(p-1,p) == "
"){<BR>                        words+="+";<BR>                }<BR>                else{<BR>                        words+=upquery.substring(p-1,p);<BR>                }<BR>        }<BR><BR>var
dimquery =  words;<BR><BR>var dimsite
=  document.happysearch.site.options[document.happysearch.site.selectedIndex].value;<BR><BR>var
dimwinopen =  document.happysearch.winopen.value;<BR><BR>queryurl = new
Array(18);<BR>queryurl[0] =
"search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=i&t&p=";<BR>queryurl[1]
=
"search.empas.com/search/all.html?col=WW&sv=IS&lk=noframes&nh=10&q=";<BR>queryurl[2]
= "kr.search.yahoo.com/bin/search?p=";<BR>queryurl[3] =
"search.naver.com/search.naver?nfid=junheego&where=nexearch&query=";<BR>queryurl[4]
= "search.daum.net/cgi-bin/search?u=host&qt=&q=";<BR>queryurl[5] =
"search.lycos.co.kr/search/srch_allindex.asp?searchfield=total&query=";<BR>queryurl[6]
=
"www.altavista.co.kr/search/webcategory.php3?stype=webcategory&stq=0&nbq=5&enc=euckr&pg=q&q=";<BR>queryurl[7]
= "dsearch.hanmir.com/cgi/dirsearch.cgi?TG=1&QR=";<BR>queryurl[8] =
"irsearch.simmani.com/cgi-bin/irsearch.cgi?q=";<BR>queryurl[9] =
"dic.naver.com/endic?where=dic&query="; <BR>queryurl[10] =
"kr.imagesearch.yahoo.com/search/image?p=";  <BR>queryurl[11] =
"search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=n&t&p=";  <BR>queryurl[12]
= "krdic.naver.com/krdic?where=krdic&query=";  <BR>queryurl[13] =
"search.hajai.com/~search/cgi-bin/mclient.cgi?lg=&h=i&t=s&p=";
<BR>queryurl[14] =
"kr.search.encycl.yahoo.com/search/enc?jy=ency&p=";  <BR>queryurl[15] =
"map.simmani.com/cgi-bin/search.cgi?s=0&c=15&m=9&q=";
<BR>queryurl[16] =
"file.simmani.com/cgi-bin/FileSearch.cgi?s=0&c=10&m=8&q=";<BR>queryurl[17]
= "tel.hanmir.com/cgi-bin/kt114.cgi?TG=7&QR=";<BR><BR><BR>sitename = new
Array(18);<BR>sitename[0] = "1";<BR>sitename[1] = "2";<BR>sitename[2] =
"3";<BR>sitename[3] = "4";<BR>sitename[4] = "5";<BR>sitename[5] =
"6";<BR>sitename[6] = "7";<BR>sitename[7] = "8";<BR>sitename[8] =
"9";<BR>sitename[9] = "10";<BR>sitename[10] = "11";<BR>sitename[11] =
"12";<BR>sitename[12] = "13";<BR>sitename[13] = "14";<BR>sitename[14] =
"15";<BR>sitename[15] = "16";<BR>sitename[16] = "17";<BR>sitename[17] =
"18";<BR><BR><BR>var i = 0;<BR>while (i < 18) {<BR>        if(dimsite ==
sitename[i]) {<BR>                if (dimwinopen == 'yes')
{<BR>                window.open("http://"+queryurl[i]+dimquery, name,
'');<BR>                }<BR>                else
{<BR>                window.location="http://"+queryurl[i]+dimquery;<BR>                }<BR><BR>                break;<BR>        }<BR>        i++;<BR>}<BR><BR><BR>}<BR>//--><BR></script><BR>      <TABLE
borderColor=#ffffff cellSpacing=0 cellPadding=0 align="center"
<BR>            border=0><BR>              <TBODY><BR>              <TR><BR>                <TD><BR>            <p
align="left">
</TD><BR>                <TD><BR>            <div
align="left"><BR>                  <TABLE
<BR>                  style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT:
0px; BORDER-BOTTOM: 0px" <BR>                  height=33 cellSpacing=1
cellPadding=0
border=0><BR>                    <TBODY><BR>                    <TR><BR>                      <FORM
name=happysearch onsubmit=click()
<BR>                      action=javascript:click()><INPUT type=hidden
value=no <BR>                      name=winopen>
<BR>                      <TD <BR>                      style="BORDER-RIGHT:
rgb(204,204,255) 0px dotted; BORDER-TOP: rgb(204,204,255) 0px dotted;
BORDER-LEFT: rgb(204,204,255) 0px dotted; BORDER-BOTTOM: rgb(204,204,255) 0px
dotted" <BR>                      align=middle
height=2><BR>                                <p align="left"><FONT
color=black><SPAN <BR><BR>                        style="FONT-SIZE:
10pt"><SELECT name=site> <OPTION
<BR>                          value=1 selected>하자아이</OPTION> <OPTION
<BR>                          value=2>엠파스</OPTION> <OPTION
value=3>야후</OPTION> <BR>                          <OPTION
value=4>네이버</OPTION> <OPTION
<BR>                          value=5>다음</OPTION> <OPTION
<BR>                          value=6>라이코스</OPTION> <OPTION
<BR>                          value=7>알타비스타</OPTION> <OPTION
<BR>                          value=8>한미르</OPTION> <OPTION
<BR>                          value=9>심마니</OPTION> <OPTION
<BR>                          value=10>영어사전</OPTION> <OPTION
<BR>                          value=11>이미지</OPTION> <OPTION
<BR>                          value=12>뉴스</OPTION> <OPTION
<BR>                          value=13>국어사전</OPTION> <OPTION
<BR>                          value=14>음악</OPTION> <OPTION
<BR>                          value=15>백과사전</OPTION> <OPTION
<BR>                          value=16>지도</OPTION> <OPTION
<BR>                          value=17>파일검색</OPTION><OPTION
<BR>                          value=18>전화번호</OPTION></SELECT>  
<BR><INPUT size="26" name=query><BR><input type=submit
value="검색"></SPAN></FONT></TD></FORM></TR></TBODY></TABLE><BR>        </div><BR></TD><BR></TR></TBODY></TABLE></td><BR><BR><!---------소스끝---------><!--"<--></td>
    </tr>
</table>

'Javascript' 카테고리의 다른 글

마우스를 따라 예쁜 이미지들을 잔상으로  (0) 2016.05.30
황당한 스크립트  (0) 2016.05.30
텍스테에 반딧불 효과를 내보자  (0) 2016.05.30
풀 스크린  (0) 2016.05.30
두개의 팝업창을 동시에 띄우려면  (0) 2016.05.30