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,411
14년 전 조회 521
14년 전 조회 855
14년 전 조회 1,150
14년 전 조회 1,149
14년 전 조회 642
14년 전 조회 1,245
14년 전 조회 724
14년 전 조회 615
14년 전 조회 2,269
14년 전 조회 962
14년 전 조회 593
14년 전 조회 593
14년 전 조회 1,619
14년 전 조회 769
14년 전 조회 1,175
14년 전 조회 1,162
14년 전 조회 1,771
14년 전 조회 1,846
14년 전 조회 1,124
14년 전 조회 785
14년 전 조회 715
14년 전 조회 963
14년 전 조회 1,119
14년 전 조회 2,530
14년 전 조회 589
14년 전 조회 910
14년 전 조회 1,066
14년 전 조회 1,441
14년 전 조회 632
14년 전 조회 543
14년 전 조회 1,256
14년 전 조회 1,601
14년 전 조회 1,670
14년 전 조회 842
14년 전 조회 653
14년 전 조회 1,809
14년 전 조회 878
14년 전 조회 1,254
14년 전 조회 702
14년 전 조회 760
14년 전 조회 750
14년 전 조회 842
14년 전 조회 4,644
14년 전 조회 757
14년 전 조회 874
14년 전 조회 1,530
14년 전 조회 696
14년 전 조회 488
14년 전 조회 868
14년 전 조회 2,138
14년 전 조회 1,604
14년 전 조회 1,428
14년 전 조회 2,854
14년 전 조회 1,973
14년 전 조회 923
14년 전 조회 995
14년 전 조회 947
14년 전 조회 1,049
14년 전 조회 537
14년 전 조회 845
14년 전 조회 994
14년 전 조회 2,544
14년 전 조회 861
14년 전 조회 589
14년 전 조회 606
14년 전 조회 2,957
14년 전 조회 741
14년 전 조회 1,455
14년 전 조회 1,458
14년 전 조회 653
14년 전 조회 1,374
14년 전 조회 764
14년 전 조회 876
14년 전 조회 1,839
14년 전 조회 1,544
14년 전 조회 2,147
14년 전 조회 878
14년 전 조회 762
14년 전 조회 2,147
14년 전 조회 778
14년 전 조회 884
14년 전 조회 2,003
14년 전 조회 1,013
14년 전 조회 924
14년 전 조회 669
14년 전 조회 918
14년 전 조회 1,933
14년 전 조회 498
14년 전 조회 2,457
14년 전 조회 827
14년 전 조회 533
14년 전 조회 535
14년 전 조회 799
14년 전 조회 707
14년 전 조회 603
14년 전 조회 1,093
14년 전 조회 531
14년 전 조회 1,206
14년 전 조회 1,575
🐛 버그신고