구글검색관련

구글검색관련

QA

구글검색관련

답변 1

본문


        <div class="hd_sch_wr">
            <fieldset id="hd_sch">
                <legend>사이트 내 전체검색</legend>
                <form name="fsearchbox" method="get" action="http://www.google.com/search">
                <input type="hidden" name="domains" value="http://spmoney.pe.kr"  />
                <input type="hidden" name="sitesearch" value="http://spmoney.pe.kr"/>
                <input type="text" name="stx" id="sch_stx" maxlength="20" placeholder="검색어를 입력해주세요"  >
                <button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
                </form>
            </fieldset>

 

그누보드 기본베이직에 소스 일부만 건드려서 어느정도 구글 검색이 되게 끔 해놓았는데 검색어를 입력해주세요에 검색어를 넣으면 반영이 안되는데 어떻게 해야될까요?

이 질문에 댓글 쓰기 :

답변 1

placeholder 는 설명입니다.

value="검색어" 

이걸 넣어보세요


        <div class="hd_sch_wr">
            <fieldset id="hd_sch">
                <legend>사이트 내 전체검색</legend>
                <form name="fsearchbox" method="get" action="http://www.google.com/search">
                <input type="hidden" name="domains" value="http://spmoney.pe.kr"  />
                <input type="hidden" name="sitesearch" value="http://spmoney.pe.kr"/>

                <input type="text" name="stx" id="sch_stx" maxlength="20" value="검색어" placeholder="검색어를 입력해주세요" >
                <button type="submit" id="sch_submit" value="검색"><i class="fa fa-search" aria-hidden="true"></i><span class="sound_only">검색</span></button>
                </form>
            </fieldset>

알려주신대로 해봤는데 아무런 반응이 없네요.
설명이라고 말씀해주신"placeholde"를 없애고 해도 동일하게 검색어 적용이 안되네요.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 129,102
© SIRSOFT
현재 페이지 제일 처음으로