2016-08-26 2 views
0

검색 버튼 텍스트를 아래 jsfiddle의 아이콘으로 어떻게 수정 했습니까?Google 사이트 검색 검색 버튼 glyphicon

내 페이지에는 동일한 코드/태그 (cx 매개 변수 제외)가 있지만 검색 버튼 텍스트에는 '검색'이라고 표시되어 옆에 X 아이콘이 있습니다. 이러한 종류의 수정을 허용하는 GSS 제어판의 설정을 찾지 못했습니다.

// Make sure in jsFiddle you have selected option onLoad. 
 
(function() { 
 
    var cx = '017643444788069204610:4gvhea_mvga'; // Insert your own Custom Search Engine ID here 
 
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; 
 
    gcse.src = (document.location.protocol == 'https' ? 'https:' : 'http:') + 
 
     '//www.google.com/cse/cse.js?cx=' + cx; 
 
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); 
 
})();
<div style="border: 1px solid blue;"> 
 
    Area 1 (for example a sidebar) 
 
    <gcse:searchbox></gcse:searchbox> 
 
</div> 
 

 
<div style="border: 1px solid red;"> 
 
    Area 2 (for example main area of the page) 
 
    <gcse:searchresults></gcse:searchresults> 
 
</div>

+0

을 난 그냥이 글을 읽을 필요가 있다고 생각 https://support.google.com/ customsearch/answer/1721914? hl = ko & ref_topic = 1723767 더욱 신중하게 섹션 Look and Feel 및 검색 상자 사용자 정의 –

+0

@LucaFilosofi 버튼 수정이 설명 된 특정 섹션을 지적 할 수 있으면 괜찮습니다. 지난 한 시간 동안 제공 한 문서와 동일한 세트를보고 있었기 때문에 버튼 텍스트/아이콘에 대한 구체적인 내용을 찾지 못했습니다. – joym8

+0

http://stackoverflow.com/questions/29902393/how-to-replace-google-custom-search-engines-magnifying-glass-with-a-button-that –

답변