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,394
14년 전 조회 507
14년 전 조회 839
14년 전 조회 1,133
14년 전 조회 1,134
14년 전 조회 629
14년 전 조회 1,230
14년 전 조회 711
14년 전 조회 601
14년 전 조회 2,253
14년 전 조회 951
14년 전 조회 577
14년 전 조회 578
14년 전 조회 1,605
14년 전 조회 755
14년 전 조회 1,161
14년 전 조회 1,153
14년 전 조회 1,757
14년 전 조회 1,833
14년 전 조회 1,105
14년 전 조회 770
14년 전 조회 701
14년 전 조회 948
14년 전 조회 1,102
14년 전 조회 2,516
14년 전 조회 575
14년 전 조회 893
14년 전 조회 1,057
14년 전 조회 1,426
14년 전 조회 620
14년 전 조회 528
14년 전 조회 1,245
14년 전 조회 1,582
14년 전 조회 1,657
14년 전 조회 825
14년 전 조회 640
14년 전 조회 1,794
14년 전 조회 863
14년 전 조회 1,238
14년 전 조회 690
14년 전 조회 748
14년 전 조회 731
14년 전 조회 827
14년 전 조회 4,630
14년 전 조회 739
14년 전 조회 858
14년 전 조회 1,514
14년 전 조회 681
14년 전 조회 474
14년 전 조회 852
14년 전 조회 2,123
14년 전 조회 1,589
14년 전 조회 1,410
14년 전 조회 2,841
14년 전 조회 1,956
14년 전 조회 906
14년 전 조회 979
14년 전 조회 932
14년 전 조회 1,033
14년 전 조회 522
14년 전 조회 829
14년 전 조회 975
14년 전 조회 2,527
14년 전 조회 843
14년 전 조회 577
14년 전 조회 594
14년 전 조회 2,940
14년 전 조회 727
14년 전 조회 1,439
14년 전 조회 1,442
14년 전 조회 638
14년 전 조회 1,362
14년 전 조회 752
14년 전 조회 858
14년 전 조회 1,825
14년 전 조회 1,525
14년 전 조회 2,127
14년 전 조회 864
14년 전 조회 745
14년 전 조회 2,134
14년 전 조회 761
14년 전 조회 871
14년 전 조회 1,984
14년 전 조회 1,000
14년 전 조회 906
14년 전 조회 652
14년 전 조회 899
14년 전 조회 1,913
14년 전 조회 481
14년 전 조회 2,442
14년 전 조회 808
14년 전 조회 514
14년 전 조회 521
14년 전 조회 786
14년 전 조회 690
14년 전 조회 586
14년 전 조회 1,077
14년 전 조회 512
14년 전 조회 1,196
14년 전 조회 1,559
🐛 버그신고