How to use custom search box for google custom search?

牧云@^-^@ 提交于 2019-12-12 05:37:49

问题


How to use custom search box for google custom search?

I need to change the style for google search box into my own style..


回答1:


I think you need this:

		<div id="globalsearch" class="globalsearch">
<form method="get" action="http://www.google.com/search" target="_blank" class="navbar_search"> <input type="hidden" name="sitesearch" value="yoursite.com"  id="pn"/>
				<input type="hidden" name="s" value="" />
				<input type="hidden" name="securitytoken" value="" />
				<input type="hidden" name="do" value="process" />
				<span class="textboxcontainer"><span><input placeholder="Search..." type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
			</form>
		</div>

you can custom your class and css

  • change this: value="yoursite.com"


来源:https://stackoverflow.com/questions/39574444/how-to-use-custom-search-box-for-google-custom-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!