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,387
14년 전 조회 504
14년 전 조회 833
14년 전 조회 1,130
14년 전 조회 1,130
14년 전 조회 625
14년 전 조회 1,228
14년 전 조회 709
14년 전 조회 598
14년 전 조회 2,251
14년 전 조회 948
14년 전 조회 572
14년 전 조회 574
14년 전 조회 1,602
14년 전 조회 752
14년 전 조회 1,160
14년 전 조회 1,151
14년 전 조회 1,756
14년 전 조회 1,830
14년 전 조회 1,103
14년 전 조회 764
14년 전 조회 696
14년 전 조회 942
14년 전 조회 1,099
14년 전 조회 2,511
14년 전 조회 570
14년 전 조회 891
14년 전 조회 1,052
14년 전 조회 1,422
14년 전 조회 614
14년 전 조회 525
14년 전 조회 1,242
14년 전 조회 1,580
14년 전 조회 1,654
14년 전 조회 823
14년 전 조회 637
14년 전 조회 1,790
14년 전 조회 859
14년 전 조회 1,233
14년 전 조회 685
14년 전 조회 742
14년 전 조회 731
14년 전 조회 822
14년 전 조회 4,627
14년 전 조회 735
14년 전 조회 854
14년 전 조회 1,510
14년 전 조회 675
14년 전 조회 471
14년 전 조회 847
14년 전 조회 2,115
14년 전 조회 1,585
14년 전 조회 1,407
14년 전 조회 2,838
14년 전 조회 1,950
14년 전 조회 902
14년 전 조회 972
14년 전 조회 927
14년 전 조회 1,027
14년 전 조회 519
14년 전 조회 825
14년 전 조회 974
14년 전 조회 2,526
14년 전 조회 839
14년 전 조회 571
14년 전 조회 588
14년 전 조회 2,938
14년 전 조회 721
14년 전 조회 1,433
14년 전 조회 1,437
14년 전 조회 634
14년 전 조회 1,355
14년 전 조회 745
14년 전 조회 856
14년 전 조회 1,821
14년 전 조회 1,520
14년 전 조회 2,126
14년 전 조회 855
14년 전 조회 738
14년 전 조회 2,130
14년 전 조회 757
14년 전 조회 865
14년 전 조회 1,979
14년 전 조회 997
14년 전 조회 903
14년 전 조회 647
14년 전 조회 893
14년 전 조회 1,911
14년 전 조회 477
14년 전 조회 2,439
14년 전 조회 806
14년 전 조회 512
14년 전 조회 516
14년 전 조회 780
14년 전 조회 685
14년 전 조회 584
14년 전 조회 1,071
14년 전 조회 509
14년 전 조회 1,188
14년 전 조회 1,557
🐛 버그신고