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,415
14년 전 조회 522
14년 전 조회 858
14년 전 조회 1,151
14년 전 조회 1,153
14년 전 조회 644
14년 전 조회 1,246
14년 전 조회 724
14년 전 조회 617
14년 전 조회 2,271
14년 전 조회 964
14년 전 조회 595
14년 전 조회 594
14년 전 조회 1,619
14년 전 조회 771
14년 전 조회 1,176
14년 전 조회 1,164
14년 전 조회 1,772
14년 전 조회 1,848
14년 전 조회 1,125
14년 전 조회 789
14년 전 조회 717
14년 전 조회 966
14년 전 조회 1,119
14년 전 조회 2,531
14년 전 조회 593
14년 전 조회 910
14년 전 조회 1,067
14년 전 조회 1,441
14년 전 조회 635
14년 전 조회 545
14년 전 조회 1,257
14년 전 조회 1,602
14년 전 조회 1,672
14년 전 조회 843
14년 전 조회 656
14년 전 조회 1,811
14년 전 조회 879
14년 전 조회 1,256
14년 전 조회 703
14년 전 조회 762
14년 전 조회 753
14년 전 조회 843
14년 전 조회 4,645
14년 전 조회 760
14년 전 조회 876
14년 전 조회 1,532
14년 전 조회 699
14년 전 조회 489
14년 전 조회 870
14년 전 조회 2,140
14년 전 조회 1,604
14년 전 조회 1,428
14년 전 조회 2,855
14년 전 조회 1,974
14년 전 조회 926
14년 전 조회 996
14년 전 조회 948
14년 전 조회 1,050
14년 전 조회 538
14년 전 조회 847
14년 전 조회 996
14년 전 조회 2,545
14년 전 조회 862
14년 전 조회 591
14년 전 조회 607
14년 전 조회 2,958
14년 전 조회 743
14년 전 조회 1,458
14년 전 조회 1,459
14년 전 조회 653
14년 전 조회 1,375
14년 전 조회 765
14년 전 조회 879
14년 전 조회 1,840
14년 전 조회 1,546
14년 전 조회 2,149
14년 전 조회 881
14년 전 조회 763
14년 전 조회 2,149
14년 전 조회 779
14년 전 조회 885
14년 전 조회 2,003
14년 전 조회 1,013
14년 전 조회 925
14년 전 조회 669
14년 전 조회 918
14년 전 조회 1,936
14년 전 조회 499
14년 전 조회 2,459
14년 전 조회 828
14년 전 조회 533
14년 전 조회 537
14년 전 조회 802
14년 전 조회 708
14년 전 조회 606
14년 전 조회 1,093
14년 전 조회 533
14년 전 조회 1,207
14년 전 조회 1,576
🐛 버그신고