숀패밀리

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년 전 조회 4,287
14년 전 조회 1,388
14년 전 조회 1,723
14년 전 조회 2,021
14년 전 조회 2,033
14년 전 조회 1,523
14년 전 조회 2,130
14년 전 조회 1,596
14년 전 조회 1,479
14년 전 조회 3,132
14년 전 조회 1,880
14년 전 조회 1,466
14년 전 조회 1,445
14년 전 조회 2,486
14년 전 조회 1,660
14년 전 조회 2,059
14년 전 조회 2,043
14년 전 조회 2,655
14년 전 조회 2,721
14년 전 조회 1,993
14년 전 조회 1,631
14년 전 조회 1,558
14년 전 조회 1,772
14년 전 조회 1,969
14년 전 조회 3,427
14년 전 조회 1,442
14년 전 조회 1,785
14년 전 조회 1,914
14년 전 조회 2,289
14년 전 조회 1,500
14년 전 조회 1,392
14년 전 조회 2,089
14년 전 조회 2,441
14년 전 조회 2,521
14년 전 조회 1,709
14년 전 조회 1,496
14년 전 조회 2,620
14년 전 조회 1,712
14년 전 조회 2,092
14년 전 조회 1,530
14년 전 조회 1,618
14년 전 조회 1,581
14년 전 조회 1,673
14년 전 조회 5,517
14년 전 조회 1,559
14년 전 조회 1,694
14년 전 조회 2,369
14년 전 조회 1,523
14년 전 조회 1,319
14년 전 조회 1,669
14년 전 조회 2,956
14년 전 조회 2,378
14년 전 조회 2,233
14년 전 조회 3,672
14년 전 조회 2,762
14년 전 조회 1,730
14년 전 조회 1,787
14년 전 조회 1,757
14년 전 조회 1,865
14년 전 조회 1,335
14년 전 조회 1,648
14년 전 조회 1,782
14년 전 조회 3,352
14년 전 조회 1,662
14년 전 조회 1,400
14년 전 조회 1,398
14년 전 조회 3,746
14년 전 조회 1,521
14년 전 조회 2,219
14년 전 조회 2,252
14년 전 조회 1,452
14년 전 조회 2,118
14년 전 조회 1,533
14년 전 조회 1,658
14년 전 조회 2,582
14년 전 조회 2,318
14년 전 조회 2,927
14년 전 조회 1,632
14년 전 조회 1,525
14년 전 조회 2,896
14년 전 조회 1,542
14년 전 조회 1,672
14년 전 조회 2,791
14년 전 조회 1,775
14년 전 조회 1,707
14년 전 조회 1,440
14년 전 조회 1,678
14년 전 조회 2,703
14년 전 조회 1,284
14년 전 조회 3,251
14년 전 조회 1,598
14년 전 조회 1,321
14년 전 조회 1,304
14년 전 조회 1,563
14년 전 조회 1,483
14년 전 조회 1,383
14년 전 조회 1,886
14년 전 조회 1,309
14년 전 조회 1,940
14년 전 조회 2,323