php 함수검색 넣기

홈피에 php 함수검색을 넣을때 필요한 html/css입니다
php 커뮤니티등의 상단메뉴부분에 넣으시면됍니다
 
<style>
.php_search_div {padding:5px;border:0px;text-align:center;font-weight:bold;color:#FFFFFF;}
.php_search_div .php_search{ width:100px; height:20px; padding:4px 4px 0 4px; background-color:#6f6f6f; color:#ffffff; border:0px;}
.php_search_div .btn{ background:url(./images/btn_search.gif) no-repeat; width:40px; height:20px; text-indent: -100em; overflow:hidden; border:0px; cursor:pointer;}
</style>
 
        <!-- PHP함수검색 -->
            <div id="php_search_div" class="php_search_div">
                <script>
                    function Go_php_search() {

                        var obj = document.getElementById('php_search');

                        if(obj.value=="검색어를 입력하세요" || !obj.value) {
                            alert("검색어를 넣어주세요.");
                            obj.value="";
                            obj.focus();
                            return;
                        }

                        window.open("http://www.php.net/search.php?show=quickref&pattern="+obj.value,"_blank")
                    }
                </script>
                <img src="./images/s_php.gif" border="0"><!-- 타이틀부분 , 이미지로 하던 글로쓰던 맘대로   -->
                                <div style="width:155px;padding:5px;text-align:center;">
                <input type="text" name="php_search" id="php_search" value=""  onkeypress="if (event.keyCode == 13) { try{Go_php_search(); return false;}catch(e){} }" class="php_search"/> <input value="검색" type="button" onclick="try{Go_php_search(); return false;}catch(e){}" class="btn"/></div>
            </div>
      
이상입니다
|

댓글 2개

용도는 무엇인지요?
http://www.php.net/search.php?show=quickref&pattern="+obj.value,"_blank"

이게 답인듯 한데요
작업하다 보면 아무래도 필요할 때가 있을듯 합니다
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
14년 전 조회 3,543
14년 전 조회 635
14년 전 조회 981
14년 전 조회 1,281
14년 전 조회 1,285
14년 전 조회 764
14년 전 조회 1,386
14년 전 조회 870
14년 전 조회 739
14년 전 조회 2,407
14년 전 조회 1,095
14년 전 조회 732
14년 전 조회 705
14년 전 조회 1,744
14년 전 조회 895
14년 전 조회 1,311
14년 전 조회 1,280
14년 전 조회 1,906
14년 전 조회 1,990
14년 전 조회 1,261
14년 전 조회 900
14년 전 조회 835
14년 전 조회 1,070
14년 전 조회 1,256
14년 전 조회 2,677
14년 전 조회 721
14년 전 조회 1,046
14년 전 조회 1,186
14년 전 조회 1,564
14년 전 조회 776
14년 전 조회 675
14년 전 조회 1,385
14년 전 조회 1,733
14년 전 조회 1,798
14년 전 조회 972
14년 전 조회 786
14년 전 조회 1,921
14년 전 조회 1,008
14년 전 조회 1,378
14년 전 조회 828
14년 전 조회 891
14년 전 조회 877
14년 전 조회 967
14년 전 조회 4,779
14년 전 조회 874
14년 전 조회 1,005
14년 전 조회 1,665
14년 전 조회 823
14년 전 조회 623
14년 전 조회 1,001
14년 전 조회 2,270
14년 전 조회 1,723
14년 전 조회 1,541
14년 전 조회 2,984
14년 전 조회 2,090
14년 전 조회 1,056
14년 전 조회 1,115
14년 전 조회 1,070
14년 전 조회 1,178
14년 전 조회 662
14년 전 조회 970
14년 전 조회 1,104
14년 전 조회 2,672
14년 전 조회 996
14년 전 조회 720
14년 전 조회 739
14년 전 조회 3,092
14년 전 조회 866
14년 전 조회 1,585
14년 전 조회 1,588
14년 전 조회 780
14년 전 조회 1,493
14년 전 조회 888
14년 전 조회 1,007
14년 전 조회 1,967
14년 전 조회 1,667
14년 전 조회 2,286
14년 전 조회 1,006
14년 전 조회 888
14년 전 조회 2,274
14년 전 조회 908
14년 전 조회 1,001
14년 전 조회 2,120
14년 전 조회 1,117
14년 전 조회 1,052
14년 전 조회 791
14년 전 조회 1,043
14년 전 조회 2,048
14년 전 조회 626
14년 전 조회 2,601
14년 전 조회 963
14년 전 조회 664
14년 전 조회 655
14년 전 조회 922
14년 전 조회 830
14년 전 조회 737
14년 전 조회 1,221
14년 전 조회 669
14년 전 조회 1,319
14년 전 조회 1,694