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,398
14년 전 조회 507
14년 전 조회 842
14년 전 조회 1,138
14년 전 조회 1,135
14년 전 조회 630
14년 전 조회 1,234
14년 전 조회 712
14년 전 조회 604
14년 전 조회 2,254
14년 전 조회 954
14년 전 조회 580
14년 전 조회 580
14년 전 조회 1,608
14년 전 조회 759
14년 전 조회 1,161
14년 전 조회 1,154
14년 전 조회 1,759
14년 전 조회 1,835
14년 전 조회 1,107
14년 전 조회 771
14년 전 조회 703
14년 전 조회 948
14년 전 조회 1,108
14년 전 조회 2,518
14년 전 조회 578
14년 전 조회 897
14년 전 조회 1,057
14년 전 조회 1,429
14년 전 조회 621
14년 전 조회 532
14년 전 조회 1,245
14년 전 조회 1,585
14년 전 조회 1,657
14년 전 조회 827
14년 전 조회 646
14년 전 조회 1,795
14년 전 조회 866
14년 전 조회 1,240
14년 전 조회 693
14년 전 조회 749
14년 전 조회 733
14년 전 조회 831
14년 전 조회 4,632
14년 전 조회 743
14년 전 조회 861
14년 전 조회 1,517
14년 전 조회 685
14년 전 조회 479
14년 전 조회 854
14년 전 조회 2,124
14년 전 조회 1,592
14년 전 조회 1,416
14년 전 조회 2,841
14년 전 조회 1,958
14년 전 조회 909
14년 전 조회 982
14년 전 조회 934
14년 전 조회 1,035
14년 전 조회 525
14년 전 조회 833
14년 전 조회 983
14년 전 조회 2,530
14년 전 조회 846
14년 전 조회 578
14년 전 조회 595
14년 전 조회 2,942
14년 전 조회 729
14년 전 조회 1,442
14년 전 조회 1,445
14년 전 조회 641
14년 전 조회 1,363
14년 전 조회 755
14년 전 조회 862
14년 전 조회 1,827
14년 전 조회 1,531
14년 전 조회 2,130
14년 전 조회 864
14년 전 조회 748
14년 전 조회 2,135
14년 전 조회 764
14년 전 조회 874
14년 전 조회 1,986
14년 전 조회 1,002
14년 전 조회 911
14년 전 조회 657
14년 전 조회 901
14년 전 조회 1,916
14년 전 조회 484
14년 전 조회 2,444
14년 전 조회 813
14년 전 조회 520
14년 전 조회 524
14년 전 조회 787
14년 전 조회 693
14년 전 조회 587
14년 전 조회 1,079
14년 전 조회 512
14년 전 조회 1,197
14년 전 조회 1,563
🐛 버그신고